AttachVolume

post

/20160918/volumeAttachments

Attach the specified storage volume to the specified instance.

Request

Supported Media Types
Header Parameters
  • Minimum Length: 1
    Maximum Length: 64
    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).
  • VNIC attachments for extra block storage volume in CVM hypervisor host.
Body ()
Attach volume request
Root Schema : AttachVolumeDetails
Type: object
Discriminator: type
Show Source
  • CreateVolumeDetails
    The details of the volume to create. For the CreateVolume operation, this field is required in the request.
  • Minimum Length: 3
    Maximum Length: 100
    The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices.
  • Minimum Length: 1
    Maximum Length: 255
    A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the instance. For AttachVolume operation, this is a required field for the request.
  • Whether the attachment was created in read-only mode.
  • Whether the attachment should be created in shareable mode. If an attachment is created in shareable mode, then other instances can attach the same volume, provided that they also create their attachments in shareable mode. Only certain volume types can be attached in shareable mode. Defaults to false if not specified.
  • Minimum Length: 1
    Maximum Length: 255
    The type of volume. The only supported values are "iscsi", "paravirtualized", "service_determined" and "nvme".
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the volume. If CreateVolumeDetails is specified, this field must be omitted from the request.
Nested Schema : CreateVolumeDetails
Type: object
The details of the volume to create. For the CreateVolume operation, this field is required in the request.
Show Source
  • autotunePolicies
    Unique Items Required: true
    The list of autotune policies to be enabled for this volume.
  • Minimum Length: 1
    Maximum Length: 255
    The availability domain of the volume, which is AD-1. This parameter is not needed to clone a volume.
  • Minimum Length: 1
    Maximum Length: 255
    If provided, specifies the OCID of the volume backup policy to assign to the newly created volume. If omitted, no policy will be assigned.
  • blockVolumeReplicas
    Maximum Number of Items: 1
    Unique Items Required: true
    The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the compartment that contains the volume.
  • definedTags
    Additional Properties Allowed: additionalProperties
    Defined tags for this resource. Each key is predefined and scoped to a namespace.
  • Minimum Length: 1
    Maximum Length: 255
    A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information.
  • freeformTags
    Additional Properties Allowed: additionalProperties
    . Each tag is a simple key-value pair with no predefined name, type, or namespace. The volume block size can be set by using the PCA_blocksize free-form tag. The default block size is 8192 bytes. To specify a different block size, specify a value in bytes for the PCA_blocksize tag. Supported values are a power of 2 between 512 bytes and 1 megabyte. The block size cannot be modified once the volume has been created.
  • Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the DetachedVolumeAutotunePolicy instead to enable the volume for detached autotune.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the Key Management key to assign as the master encryption key for the volume.
  • The size of the volume in GBs.
  • The size of the volume in MBs. The value must be a multiple of 1024. This field is deprecated. Use sizeInGBs instead.
  • VolumeSourceDetails
    Discriminator: type
    Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup or a disk image in Object Storage. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the volume backup from which the data should be restored on the newly created volume. This field is deprecated. Use the sourceDetails field instead to specify the backup for the volume.
  • This is an optional field. This value indicates whether the volume is AD-local or Regional. Oracle Private Cloud Appliance has one region, named pca_name.domain (for example, mypca.example.com), and one availability domain, named AD-1.
  • The flag indicating the given source volumes will be used for producing a thin clone or full clone.
  • The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. Allowed values: 10 - Balanced option, 20 - Higher Performance option. For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB.
Nested Schema : autotunePolicies
Type: array
Unique Items Required: true
The list of autotune policies to be enabled for this volume.
Show Source
Nested Schema : blockVolumeReplicas
Type: array
Maximum Number of Items: 1
Unique Items Required: true
The list of block volume replicas to be enabled for this volume in the specified destination availability domains.
Show Source
Nested Schema : definedTags
Type: object
Additional Properties Allowed
Show Source
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Nested Schema : freeformTags
Type: object
Additional Properties Allowed
Show Source
. Each tag is a simple key-value pair with no predefined name, type, or namespace. The volume block size can be set by using the PCA_blocksize free-form tag. The default block size is 8192 bytes. To specify a different block size, specify a value in bytes for the PCA_blocksize tag. Supported values are a power of 2 between 512 bytes and 1 megabyte. The block size cannot be modified once the volume has been created.
Nested Schema : VolumeSourceDetails
Type: object
Discriminator: type
Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup or a disk image in Object Storage. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup.
Show Source
Nested Schema : AutotunePolicy
Type: object
Discriminator: autotuneType
An autotune policy automatically tunes the volume's performace based on the type of the policy.
Show Source
Nested Schema : BlockVolumeReplicaDetails
Type: object
Contains the details for the block volume replica
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    The availability domain of the block volume replica. Example: AD-1
  • Minimum Length: 1
    Maximum Length: 255
    A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information.
Nested Schema : additionalProperties
Type: object
Additional Properties Allowed
Show Source
Key-value pair representing a defined tag key and value, scoped to a namespace.
Nested Schema : additionalProperties
Type: object
The value of the tag. Only the String type is supported.
Back to Top

Response

Supported Media Types

200 Response

The volume is being attached.
Headers
  • For optimistic concurrency control. See if-match.
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : VolumeAttachment
Type: object
Discriminator: attachmentType
A base object for all types of attachments between a storage volume and an instance. For specific details about iSCSI attachments, see IScsiVolumeAttachment. Avoid using confidential information when you supply string values using the API.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    The type of volume attachment.
  • Minimum Length: 1
    Maximum Length: 255
    The availability domain of an instance. Example: AD-1
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the compartment.
  • Minimum Length: 3
    Maximum Length: 100
    The device name.
  • Minimum Length: 1
    Maximum Length: 255
    A user-friendly name. Does not need to be unique, and it is changeable. Avoid entering confidential information.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the volume attachment.
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the instance the volume is attached to.
  • Allowed Values: [ "UNKNOWN", "LOGGING_IN", "LOGIN_SUCCEEDED", "LOGIN_FAILED", "LOGGING_OUT", "LOGOUT_SUCCEEDED", "LOGOUT_FAILED" ]
    The iscsi login state of the volume attachment. For a Iscsi volume attachment, all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state.
  • Whether in-transit encryption for the data volume's attachment is enabled or not.
  • Whether the Iscsi or Paravirtualized attachment is multipath or not, it is not applicable to NVMe attachment.
  • Deprecated. Use isEncryptionInTransitEnabled instead.
  • Whether the attachment was created in read-only mode.
  • Whether the attachment should be created in shareable mode. If an attachment is created in shareable mode, then other instances can attach the same volume, provided that they also create their attachments in shareable mode. Only certain volume types can be attached in shareable mode. Defaults to false if not specified.
  • Allowed Values: [ "ATTACHING", "ATTACHED", "DETACHING", "DETACHED" ]
    The current state of the volume attachment.
  • The date and time the volume was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2016-08-25T21:10:29.600Z
  • Minimum Length: 1
    Maximum Length: 255
    The OCID of the volume.

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

409 Response

Conflict
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source

Default Response

An error has occurred.
Headers
  • Unique Oracle-assigned identifier for the request. Provide this request OCID if you need to contact Oracle about this request.
Body ()
Root Schema : Error
Type: object
The properties that define an error.
Show Source
Back to Top