To identify the vSphere VM where you want to attach your disk, look for the name and the region ID in the response. The
self:href
path includes the machine ID.
{
"powerState": "OFF",
"externalRegionId": "Datacenter:datacenter-2",
"cloudAccountIds": [
"e0f23c91d5ecca75-7f703c5265a63d87-7e3d8d60a55d1306cc791422547ead9153c3bdf1c802400819ad45a341cba1f3-b37e594a2e813475574a7c3c42b5d"
],
"provisioningStatus": "READY",
"customProperties": {
"osType": "LINUX",
"vcUuid": "1f9678f0-90d1-4347-82ee-f1ac2fac4216",
"memoryGB": "1",
"datacenter": "Datacenter:datacenter-2",
"instanceUUID": "503a00ea-5ce5-3ae8-db3d-ebbd537eed5f",
"softwareName": "Ubuntu Linux (64-bit)",
"cpuCount": "2",
"memoryInMB": "1024"
},
"externalId": "503a00ea-5ce5-3ae8-db3d-ebbd537eed5f",
"name": "wordpress-mcm827-142063808276-ovf-backing",
"id": "0355cee4-5d88-36b6-9a87-5f37b5baa6e2",
"createdAt": "2022-04-02",
"updatedAt": "2022-04-02",
"organizationId": "f670fdfc-66d6-4689-9793-d524e7066d1e",
"orgId": "f670fdfc-66d6-4689-9793-d524e7066d1e",
"_links": {
"network-interfaces": {
"hrefs": [
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/network-interfaces/1c31ee02-c83c-3229-84ec-929f3592494a"
]
},
"cloud-accounts": {
"hrefs": [
"/iaas/api/cloud-accounts/e0f23c91d5ecca75-7f703c5265a63d87-7e3d8d60a55d1306cc791422547ead9153c3bdf1c802400819ad45a341cba1f3-b37e594a2e813475574a7c3c42b5d"
]
},
"operations": {
"hrefs": [
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/operations/power-on",
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/operations/snapshots",
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/operations/resize",
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/disks",
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/disks/{id}"
]
},
"disks": {
"hrefs": [
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/disks/effb94a6-41ad-3553-bb9a-22896785a283",
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/disks/0815ed4c-0a33-3058-a5f5-3032a426ded4",
"/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2/disks/3804a2b2-99fc-3fca-bd2f-f0cfc3845b54"
]
},
"self": {
"href": "/iaas/api/machines/0355cee4-5d88-36b6-9a87-5f37b5baa6e2"
}
}
},
In this response example, the machine ID is
0355cee4-5d88-36b6-9a87-5f37b5baa6e2
.