Attach Machine Disk

Attach Machine Disk

Attach a disk to a machine.

Request
URI
POST
https://{api_host}/iaas/api/machines/{id}/disks
COPY
Path Parameters
string
id
Required

The ID of the machine.

Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information please refer to /iaas/api/about


Request Body

Disk Specification instance

DiskAttachmentSpecification of type(s) application/json
Required
{
    "name": "string",
    "description": "string",
    "blockDeviceId": "1298765"
}
string
name
Required

A human-friendly name used as an identifier in APIs that support this option.

string
description
Optional

A human-friendly description.

string
blockDeviceId
Required

The id of the existing block device

Responses
200

successful operation

Returns BlockDevice of type(s) application/json
{
    "id": "9e49",
    "createdAt": "2012-09-27",
    "updatedAt": "2012-09-27",
    "owner": "[email protected]",
    "organizationId": "deprecated",
    "orgId": "9e49",
    "name": "my-name",
    "description": "my-description",
    "externalId": "i-cfe4-e241-e53b-756a9a2e25d2",
    "projectId": "9e49",
    "externalZoneId": "us-east-1a",
    "externalRegionId": "us-east-1",
    "cloudAccountIds": [
        "string"
    ],
    "capacityInGB": 10,
    "status": "ATTACHED",
    "tags": [
        {
            "key": "string",
            "value": "string"
        }
    ]
}
string
id
Required

The id of this resource instance

string
createdAt
Optional

Date when the entity was created. The date is in ISO 6801 and UTC.

string
updatedAt
Optional

Date when the entity was last updated. The date is ISO 8601 and UTC.

string
owner
Optional

Email of the user that owns the entity.

string
organizationId
Optional

This field is deprecated. Use orgId instead. The id of the organization this entity belongs to.

string
orgId
Optional

The id of the organization this entity belongs to.

object
_links
Required

HATEOAS of the entity

string
name
Optional

A human-friendly name used as an identifier in APIs that support this option.

string
description
Optional

A human-friendly description.

string
externalId
Optional

External entity Id on the provider side.

string
projectId
Optional

The id of the project this entity belongs to.

string
externalZoneId
Required

The external zoneId of the resource.

string
externalRegionId
Required

The external regionId of the resource

array of string
cloudAccountIds
Optional

Set of ids of the cloud accounts this entity belongs to.

integer As int32 As int32
capacityInGB
Required

Capacity of the block device in GB.

string
status
Required

Status of the block device

Possible values are : DETACHED, ATTACHED, AVAILABLE,
array of Tag
tags
Optional

A set of tag keys and optional values that were set on this resource instance.

object
customProperties
Optional

Additional properties that may be used to extend the base type.


400

Invalid Request - bad data

Operation doesn't return any data structure

403

Forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure