Attach Machine Disk
Attach a disk to a machine.
The ID of the machine.
The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
Disk Specification instance
Show optional properties
{
"blockDeviceId": "1298765"
}
{
"name": "string",
"description": "string",
"blockDeviceId": "1298765",
"scsiController": "SCSI_Controller_0, SCSI_Controller_1, SCSI_Controller_2, SCSI_Controller_3",
"unitNumber": "0",
"diskAttachmentProperties": {
"scsiController": "SCSI_Controller_0",
"unitNumber": "2"
}
}
A human-friendly name used as an identifier in APIs that support this option.
A human-friendly description.
The id of the existing block device
Deprecated: The SCSI controller to be assigned
Deprecated: The Unit Number to be assigned
Disk Attachment specific properties
Successful operation
"RequestTracker Object"
Progress of the request as percentage.
Status message of the request.
Status of the request.
Collection of resources.
Name of the operation.
ID of this request.
Self link of this request.
ID of the deployment, this request is connected to.
Invalid Request - bad data
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
Forbidden
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
Not found
"ServiceErrorResponse Object"
message
messageId
stackTrace
statusCode
errorCode
details
serverErrorId
documentKind
internalErrorCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"blockDeviceId:"string"}' https://{api_host}/iaas/api/machines/{id}/disks