CreateVolume
POST {{baseUrl}}/volumes
Creates a new volume in the specified compartment. Volumes can be created in sizes ranging from 50 GB (51200 MB) to 32 TB (33554432 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB). For general information about block volumes, see Overview of Block Volume Service.
A volume and instance can be in separate compartments but must be in the same availability domain.
For information about access control and compartments, see
Overview of the IAM Service. 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.
You may optionally specify a display name for the volume, which is simply a friendly name or description. It does not have to be unique, and you can change it. Avoid entering confidential information.
Request Body
{"compartmentId"=>"{{compartment_ocid}}", "availabilityDomain"=>"elit nostrud", "backupPolicyId"=>"nisi exercitation officia nostrud", "blockVolumeReplicas"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "displayName"=>"nostrud et proident", "isAutoTuneEnabled"=>false, "kmsKeyId"=>"Lorem veniam", "sizeInGBs"=>-59167994, "sizeInMBs"=>60955484, "sourceDetails"=>{"type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "volumeBackupId"=>"aliqua Excepteur", "vpusPerGB"=>22252685}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | 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 | |||
may be rejected). | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"id":"occaecat do dolor laboris dolore","availabilityDomain":"laboris amet","displayName":"mollit aute non Duis","sizeInMBs":27385000,"compartmentId":"eiusmod aute","timeCreated":"1972-09-20T00:44:14.721Z","lifecycleState":"PROVISIONING","autoTunedVpusPerGB":-75858048,"blockVolumeReplicas":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"definedTags":{},"freeformTags":{},"isAutoTuneEnabled":true,"isHydrated":true,"kmsKeyId":"eu occaecat dolore magna","sizeInGBs":-67655031,"sourceDetails":{"type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"volumeGroupId":"culpa commodo ","vpusPerGB":-61347448}