lib/oci/key_management/kms_crypto_client.rb
def export_key(export_key_details, opts = {})
      logger.debug 'Calling operation KmsCryptoClient#export_key.' if logger

      raise "Missing the required parameter 'export_key_details' when calling export_key." if export_key_details.nil?

      path = '/20180608/exportKey'
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}

      # Header Params
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      # rubocop:enable Style/NegatedIf

      post_body = @api_client.object_to_http_body(export_key_details)

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'KmsCryptoClient#export_key') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'OCI::KeyManagement::Models::ExportedKeyData'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Exports a specific version of a master encryption key according to the details of the request. For their protection,
# keys that you create and store on a hardware security module (HSM) can never leave the HSM. You can only export keys
# stored on the server. For export, the key version is encrypted by an RSA public key that you provide.
#
# @param [OCI::KeyManagement::Models::ExportKeyDetails] export_key_details ExportKeyDetails
# @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
# @return [Response] A Response object with data of type {OCI::KeyManagement::Models::ExportedKeyData ExportedKeyData}
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/keymanagement/export_key.rb.html) to see an example of how to use export_key API.
Exports a specific version of a master encryption key according to the details of the request. For their protection,
keys that you create and store on a hardware security module (HSM) can never leave the HSM. You can only export keys
stored on the server. For export, the key version is encrypted by an RSA public key that you provide.
Exports a specific version of a master encryption key according to the details of the request . For their protection keys that you create and store on a hardware security module ( HSM ) can never leave the HSM . You can only export keys stored on the server . For export the key version is encrypted by an RSA public key that you provide .
def export_key(export_key_details, opts = {})
      logger.debug 'Calling operation KmsCryptoClient#export_key.' if logger
      raise "Missing the required parameter 'export_key_details' when calling export_key." if export_key_details.nil?
      path = '/20180608/exportKey'
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = @api_client.object_to_http_body(export_key_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'KmsCryptoClient#export_key') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'OCI::KeyManagement::Models::ExportedKeyData'
        )
      end
    end
def export_key ( export_key_details , opts = { } ) logger . debug 'Calling operation KmsCryptoClient#export_key.' if logger raise "Missing the required parameter 'export_key_details' when calling export_key." if export_key_details . nil? path = '/20180608/exportKey' operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = @api_client . object_to_http_body ( export_key_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'KmsCryptoClient#export_key' ) do @api_client . call_api ( :POST , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'OCI::KeyManagement::Models::ExportedKeyData' ) end end
Exports a specific version of a master encryption key according to the details of the request.
Exports a specific version of a master encryption key according to the details of the request .
# 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 {OCI::KeyManagement::Models::ExportedKeyData ExportedKeyData}
A Response object with data of type { OCI :: KeyManagement :: Models :: ExportedKeyData ExportedKeyData }
Response
export_key_details
opts
: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
: 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
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use export_key API.
Click [ here ] to see an example of how to use export_key API .