如何知道订购的块存储设备的id
How to know id of the ordered block storage device
您好,我已经使用下单方式在 softlayer 上订购了块存储设备。我想知道订购设备的名称和 ID。怎么会知道呢。下订单方法没有 return id 或 name 作为响应。我需要 id 才能在 softlayer
上调用一些其他方法
下订单后,会创建一个 SoftLayer_Container_Product_Order_Receipt 对象,该对象不包含 Block Storage ID,而是包含一个 orderId,可用于检查订单是否已获批准。
这可用于验证订单状态:
http://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Billing_Order/$orderId/getObject.json
Method: GET
一旦订单状态为“已批准”,那么块存储就有一个可用的 ID。
您可以使用此 objectFilter 使用 orderId 来检索块存储。
http://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getIscsiNetworkStorage.json?objectMask=mask[billingItem[orderItem[order]]]&objectFilter={"iscsiNetworkStorage":{"billingItem":{"orderItem":{"order":{"id":{"operation":$orderId}}}}}}
Method: GET
下一个链接提供了更多信息:
http://sldn.softlayer.com/reference/services/SoftLayer_Product_Order/placeOrder
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Container_Product_Order_Receipt
您好,我已经使用下单方式在 softlayer 上订购了块存储设备。我想知道订购设备的名称和 ID。怎么会知道呢。下订单方法没有 return id 或 name 作为响应。我需要 id 才能在 softlayer
上调用一些其他方法下订单后,会创建一个 SoftLayer_Container_Product_Order_Receipt 对象,该对象不包含 Block Storage ID,而是包含一个 orderId,可用于检查订单是否已获批准。 这可用于验证订单状态:
http://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Billing_Order/$orderId/getObject.json
Method: GET
一旦订单状态为“已批准”,那么块存储就有一个可用的 ID。
您可以使用此 objectFilter 使用 orderId 来检索块存储。
http://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getIscsiNetworkStorage.json?objectMask=mask[billingItem[orderItem[order]]]&objectFilter={"iscsiNetworkStorage":{"billingItem":{"orderItem":{"order":{"id":{"operation":$orderId}}}}}}
Method: GET
下一个链接提供了更多信息: http://sldn.softlayer.com/reference/services/SoftLayer_Product_Order/placeOrder http://sldn.softlayer.com/reference/datatypes/SoftLayer_Container_Product_Order_Receipt