lib/oci/apm_control_plane/apm_domain_client.rb
def list_data_keys(apm_domain_id, opts = {})
      logger.debug 'Calling operation ApmDomainClient#list_data_keys.' if logger

      raise "Missing the required parameter 'apm_domain_id' when calling list_data_keys." if apm_domain_id.nil?

      if opts[:data_key_type] && !OCI::ApmControlPlane::Models::DATA_KEY_TYPES_ENUM.include?(opts[:data_key_type])
        raise 'Invalid value for "data_key_type", must be one of the values in OCI::ApmControlPlane::Models::DATA_KEY_TYPES_ENUM.'
      end
      raise "Parameter value for 'apm_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(apm_domain_id)

      path = '/apmDomains/{apmDomainId}/dataKeys'.sub('{apmDomainId}', apm_domain_id.to_s)
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}
      query_params[:dataKeyType] = opts[:data_key_type] if opts[:data_key_type]

      # Header Params
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      # rubocop:enable Style/NegatedIf

      post_body = nil

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ApmDomainClient#list_data_keys') do
        @api_client.call_api(
          :GET,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'Array<OCI::ApmControlPlane::Models::DataKeySummary>'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Lists all Data Keys for the specified APM Domain. The caller may filter the list by specifying the 'dataKeyType'
# query parameter.
#
# @param [String] apm_domain_id OCID of the APM Domain
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @option opts [String] :data_key_type Data key type.
# @option opts [String] :opc_request_id The client request ID for tracing.
# @return [Response] A Response object with data of type Array<{OCI::ApmControlPlane::Models::DataKeySummary DataKeySummary}>
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/apmcontrolplane/list_data_keys.rb.html) to see an example of how to use list_data_keys API.
Lists all Data Keys for the specified APM Domain. The caller may filter the list by specifying the 'dataKeyType'
query parameter.
Lists all Data Keys for the specified APM Domain . The caller may filter the list by specifying the ' dataKeyType ' query parameter .
def list_data_keys(apm_domain_id, opts = {})
      logger.debug 'Calling operation ApmDomainClient#list_data_keys.' if logger
      raise "Missing the required parameter 'apm_domain_id' when calling list_data_keys." if apm_domain_id.nil?
      if opts[:data_key_type] && !OCI::ApmControlPlane::Models::DATA_KEY_TYPES_ENUM.include?(opts[:data_key_type])
        raise 'Invalid value for "data_key_type", must be one of the values in OCI::ApmControlPlane::Models::DATA_KEY_TYPES_ENUM.'
      end
      raise "Parameter value for 'apm_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(apm_domain_id)
      path = '/apmDomains/{apmDomainId}/dataKeys'.sub('{apmDomainId}', apm_domain_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      query_params[:dataKeyType] = opts[:data_key_type] if opts[:data_key_type]
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ApmDomainClient#list_data_keys') do
        @api_client.call_api(
          :GET,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'Array<OCI::ApmControlPlane::Models::DataKeySummary>'
        )
      end
    end
def list_data_keys ( apm_domain_id , opts = { } ) logger . debug 'Calling operation ApmDomainClient#list_data_keys.' if logger raise "Missing the required parameter 'apm_domain_id' when calling list_data_keys." if apm_domain_id . nil? if opts [ :data_key_type ] && ! OCI :: ApmControlPlane :: Models :: DATA_KEY_TYPES_ENUM . include? ( opts [ :data_key_type ] ) raise 'Invalid value for "data_key_type", must be one of the values in OCI::ApmControlPlane::Models::DATA_KEY_TYPES_ENUM.' end raise "Parameter value for 'apm_domain_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( apm_domain_id ) path = '/apmDomains/{apmDomainId}/dataKeys' . sub ( '{apmDomainId}' , apm_domain_id . to_s ) operation_signing_strategy = :standard query_params = { } query_params [ :dataKeyType ] = opts [ :data_key_type ] if opts [ :data_key_type ] header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'ApmDomainClient#list_data_keys' ) do @api_client . call_api ( :GET , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'Array<OCI::ApmControlPlane::Models::DataKeySummary>' ) end end
Lists all Data Keys for the specified APM Domain.
Lists all Data Keys for the specified APM Domain .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type Array<{OCI::ApmControlPlane::Models::DataKeySummary DataKeySummary}>
A Response object with data of type Array< { OCI :: ApmControlPlane :: Models :: DataKeySummary DataKeySummary } >
Response
apm_domain_id
opts
:opc_request_id The client request ID for tracing.
: opc_request_id The client request ID for tracing .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use list_data_keys API.
Click [ here ] to see an example of how to use list_data_keys API .