简体   繁体   中英

How to get the status of an Order on any resource using IBM cloud through Softlayer Rest API?

例如,如果我订购了私有VLAN,如何确认订购是否成功\\ In progress \\ Failed。我没有找到与获得成功相关的任何API引用。

To know if the order was provisioned successfully see the following detail.

if ' provisionDate ' is null and ' activeTransactions ' is not empty, the provisioning is in progress.

if ' provisionDate ' is not null and ' activeTransactions ' is an empty array, the provisioning is over.

Use the next requests for following the attributes pointed out lately.

Hardware

https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware/1111/getObject?objectMask=mask[activeTransactions]

Change 1111 by HardwareId valid

VirtualGuest

https://api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/1111/getObject?objectMask=mask[activeTransactions]

Change 1111 by VirtualGuestId valid

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM