How can we capture storage_Id while placing order for storage (either performance or endurance)?

纵然是瞬间 提交于 2019-12-12 01:54:37

问题


I am placing order for a block storage and I need to capture storage Id generated for that storage as soon as we places order. Please help me in capturing the storage id. Thanks in advance.


回答1:


After placing an order, the response has a property can help us to find the storageId, this is the ”orderId”. Please try the following Rest request using filters:

https://[username]:[apikey]@api.softlayer.com/rest/v3.1/SoftLayer_Account/getNetworkStorage?objectFilter={"networkStorage":{"billingItem":{"orderItem":{"order":{"id":{"operation":5208963}}}}}}

Method: GET

Where `”5208963”` is the `”orderId”` (Please change it).


来源:https://stackoverflow.com/questions/36153864/how-can-we-capture-storage-id-while-placing-order-for-storage-either-performanc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!