AttachVolume
POST {{baseUrl}}/volumeAttachments/
Attaches the specified storage volume to the specified instance.
Request Body
{"instanceId"=>"consequat laboris", "volumeId"=>"nulla dolor consectetur Duis", "type"=>"in occaecat velit in", "device"=>"Duis", "displayName"=>"dolore enim cillum", "isReadOnly"=>false, "isShareable"=>true}
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":"ipsum minim","attachmentType":"non","instanceId":"esse ea sint","volumeId":"minim occaecat in est anim","lifecycleState":"ATTACHING","compartmentId":"eu ex sunt","availabilityDomain":"magna proident","timeCreated":"1954-08-02T00:08:02.631Z","device":"consequat Lorem","displayName":"cupidatat do dolore cillum","isMultipath":false,"isPvEncryptionInTransitEnabled":true,"isReadOnly":true,"isShareable":true,"iscsiLoginState":"UNKNOWN"}