Execute the following requests to get information of Virtual Guest/Hardware already provisioned:
Virtual Guest:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/[VSI_id]/getObject?objectMask=mask[id,fullyQualifiedDomainName,createDate,provisionDate,activeTransaction,activeTransactionCount,status]
Method: GET
Hardware:
https://[username]:[apikey @api.softlayer.com/rest/v3/SoftLayer_Hardware/[Hardware_id]/getObject?objectMask=mask[id,fullyQualifiedDomainName,provisionDate,hardwareStatus,lastTransaction]
Method: GET
or
https://[username]:[apikey @api.softlayer.com/rest/v3/SoftLayer_Hardware_Server/[Hardware_id]/getObject?objectMask=mask[id,fullyQualifiedDomainName,provisionDate,activeTransaction,activeTransactionCount,hardwareStatus]
Where:
To know that a Server is already provisioned, please review that:
- “activeTransaction” is NULL, or
- “provisionDate” has a value different to NULL (i.e. when the VSI is ready, the provisionDate will have the respective provisionDate)
- The “status” is Active
To get VSI/Hardware ids, please review:
http://sldn.softlayer.com/reference/services/SoftLayer_Account/getHardware
http://sldn.softlayer.com/reference/services/SoftLayer_Account/getVirtualGuests
Some References:
http://sldn.softlayer.com/reference/services/SoftLayer_Hardware/getObject
http://sldn.softlayer.com/reference/services/SoftLayer_Hardware_Server/getObject
http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest
https://sldn.softlayer.com/article/rest
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…