lib/oci/file_storage/file_storage_client.rb
def create_file_system(create_file_system_details, opts = {})
      logger.debug 'Calling operation FileStorageClient#create_file_system.' if logger

      raise "Missing the required parameter 'create_file_system_details' when calling create_file_system." if create_file_system_details.nil?

      path = '/fileSystems'
      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'
      header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      # rubocop:enable Style/NegatedIf
      header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token

      post_body = @api_client.object_to_http_body(create_file_system_details)

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'FileStorageClient#create_file_system') 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::FileStorage::Models::FileSystem'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Creates a new file system in the specified compartment and
# availability domain. Instances can mount file systems in
# another availability domain, but doing so might increase
# latency when compared to mounting instances in the same
# availability domain.
#
# After you create a file system, you can associate it with a mount
# target. Instances can then mount the file system by connecting to the
# mount target's IP address. You can associate a file system with
# more than one mount target at a time.
#
# For information about access control and compartments, see
# [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm).
#
# For information about Network Security Groups access control, see
# [Network Security Groups](https://docs.cloud.oracle.com/Content/Network/Concepts/networksecuritygroups.htm).
#
# For information about availability domains, see [Regions and
# Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm).
# To get a list of availability domains, use the
# `ListAvailabilityDomains` operation in the Identity and Access
# Management Service API.
#
# All Oracle Cloud Infrastructure resources, including
# file systems, get an Oracle-assigned, unique ID called an Oracle
# Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)).
# When you create a resource, you can find its OCID in the response.
# You can also retrieve a resource's OCID by using a List API operation on that resource
# type or by viewing the resource in the Console.
#
# @param [OCI::FileStorage::Models::CreateFileSystemDetails] create_file_system_details Details for creating a new file system.
# @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] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
#   server error without risk of executing that same action again. Retry tokens expire after 24
#   hours, but can be invalidated before then due to conflicting operations. For example, if a resource
#   has been deleted and purged from the system, then a retry of the original creation request
#   might be rejected.
#    (default to none)
# @option opts [String] :opc_request_id Unique identifier for the request.
#   If you need to contact Oracle about a particular request, please provide the request ID.
#
# @return [Response] A Response object with data of type {OCI::FileStorage::Models::FileSystem FileSystem}
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/filestorage/create_file_system.rb.html) to see an example of how to use create_file_system API.
Creates a new file system in the specified compartment and
availability domain. Instances can mount file systems in
another availability domain, but doing so might increase
latency when compared to mounting instances in the same
availability domain.

After you create a file system, you can associate it with a mount
target. Instances can then mount the file system by connecting to the
mount target's IP address. You can associate a file system with
more than one mount target at a time.

For information about access control and compartments, see
[Overview of the IAM Service].

For information about Network Security Groups access control, see
[Network Security Groups].

For information about availability domains, see [Regions and
Availability Domains].
To get a list of availability domains, use the
`ListAvailabilityDomains` operation in the Identity and Access
Management Service API.

All Oracle Cloud Infrastructure resources, including
file systems, get an Oracle-assigned, unique ID called an Oracle
Cloud Identifier ([OCID]).
When you create a resource, you can find its OCID in the response.
You can also retrieve a resource's OCID by using a List API operation on that resource
type or by viewing the resource in the Console.
Creates a new file system in the specified compartment and availability domain . Instances can mount file systems in another availability domain but doing so might increase latency when compared to mounting instances in the same availability domain . After you create a file system you can associate it with a mount target . Instances can then mount the file system by connecting to the mount target ' s IP address . You can associate a file system with more than one mount target at a time . For information about access control and compartments see [ Overview of the IAM Service ] . For information about Network Security Groups access control see [ Network Security Groups ] . For information about availability domains see [ Regions and Availability Domains ] . To get a list of availability domains use the ` ListAvailabilityDomains ` operation in the Identity and Access Management Service API . All Oracle Cloud Infrastructure resources including file systems get an Oracle - assigned unique ID called an Oracle Cloud Identifier ( [ OCID ] ) . When you create a resource you can find its OCID in the response . You can also retrieve a resource ' s OCID by using a List API operation on that resource type or by viewing the resource in the Console .
def create_file_system(create_file_system_details, opts = {})
      logger.debug 'Calling operation FileStorageClient#create_file_system.' if logger
      raise "Missing the required parameter 'create_file_system_details' when calling create_file_system." if create_file_system_details.nil?
      path = '/fileSystems'
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
      post_body = @api_client.object_to_http_body(create_file_system_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'FileStorageClient#create_file_system') 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::FileStorage::Models::FileSystem'
        )
      end
    end
def create_file_system ( create_file_system_details , opts = { } ) logger . debug 'Calling operation FileStorageClient#create_file_system.' if logger raise "Missing the required parameter 'create_file_system_details' when calling create_file_system." if create_file_system_details . nil? path = '/fileSystems' operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-retry-token ' ] = opts [ :opc_retry_token ] if opts [ :opc_retry_token ] header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] header_params [ :' opc-retry-token ' ] ||= OCI :: Retry . generate_opc_retry_token post_body = @api_client . object_to_http_body ( create_file_system_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'FileStorageClient#create_file_system' ) 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::FileStorage::Models::FileSystem' ) end end
Creates a new file system in the specified compartment and
availability domain.
Creates a new file system in the specified compartment and availability 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 {OCI::FileStorage::Models::FileSystem FileSystem}
A Response object with data of type { OCI :: FileStorage :: Models :: FileSystem FileSystem }
Response
create_file_system_details
opts
:opc_request_id Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
: opc_request_id Unique identifier for the request . If you need to contact Oracle about a particular request please provide the request ID .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use create_file_system API.
Click [ here ] to see an example of how to use create_file_system API .