I want to use API to get the available OS list during OSReload. I found the method SoftLayer_Account::getOperatingSystemReloadImages is mentioned.But cannot find the usage about this method. Who can help me on this? Thanks.
相关问题
- Google places autocomplete suggestion without coun
- Karate API Testing - Access variable value across
- How to verify laravel passport api token in node /
- Converting byte array output into Blob corrupts fi
- How to handle “App is temporarily blocked from log
相关文章
- 我用scrapy写了一个蛮简单的爬虫怎么封装成一个api啊
- 后端给前端的API接口是怎么用代码写的
- Convert C# Object to Json Object
- Android camera2 API get focus distance in AF mode
- Getting all listing images from an Etsy shop
- Is there an API to get statictics on Google Play d
- How to search specific user's tracks by tag wi
- Django REST Framework - OAuth2 Consumer API from e
See this example to reload OS https://gist.github.com/softlayer/407058
I was not able to find this method
getOperatingSystemReloadImages
. But I found a way to get OS reload options:First, we need to know the package used to order the server. For example for
Virtual Guests
, the package used is46
. But if you want to confirm this, please execute the followingRest
request:Then, to get
”Reload options”
, execute:References:
SoftLayer_Virtual_Guest::getBillingItem
SoftLayer_Product_Package::getItemPrices
EDIT:
Now, in order to use
” SoftLayer_Virtual_Guest::reloadOperatingSystem”
, we need add some parameters in Json body configuration: “token” and “config” (Ref: SoftLayer_Virtual_Guest::reloadOperatingSystem)Below is a REST example:
URL:
Method: POST
Json:
Where: 45466 is the new priceId of the OS