Create a block storage endurance through the API

浪子不回头ぞ 提交于 2019-12-13 04:08:03

问题


I have deployed a block storage endurance by placing an order through the API, and I am wondering how can I get the id and the name of the created bock storage.


回答1:


You can retrieve the identifier (id) and username from your Block Storage - Endurance, using the orderId that SoftLayer_Product_Order::placeOrder method returns.

You can use the following REST request for it:

https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkStorage?objectFilter={"networkStorage":{"billingItem":{"orderItem":{"order":{"id":{"operation":6359215}}}}}}

Method: Get

Note: Replace $user, $apiKey with your own information. Replace 6359215 value with your orderId value.



来源:https://stackoverflow.com/questions/36038042/create-a-block-storage-endurance-through-the-api

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