SoftLayer是否支持更改虚拟访客帐单类型(每小时< - >每月)

时间:2018-03-29 14:28:24

标签: ibm-cloud-infrastructure

我只是通过SL API进行更改

Request URL:  PUT https://api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/{vm_id}.json
Parameters:  {"parameters":[{"dedicatedAccountHostOnlyFlag":false,"domain":"softlayer.com","hostname":"{vm-hostname}","hourlyBillingFlag":false}]}
Response: True
....
Request URL:  GET https://api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/vm_id.json?objectMask=mask%5Bid%2C+maxMemory%2C+startCpus%2C+dedicatedAccountHostOnlyFlag%2C+hourlyBillingFlag%2C+datacenter%5Bname%5D%2C+primaryBackendIpAddress%2C+fullyQualifiedDomainName%5D
Parameters:
Response: 

{ “dedicatedAccountHostOnlyFlag”:假, “完全限定的域名”: “{VM-主机名} .softlayer.com”, “ID”:{} vm_id, “maxMemory”:1024, “startCpus”:1, “数据中心”: { “名称”: “lon02”}, “hourlyBillingFlag”:真 “primaryBackendIpAddress”: “vm_ip”}

hourlyBillingFlag并未根据我的要求进行更改。

dedicatedAccountHostOnlyFlag相同的情况。

那么SL是否支持这些变化?如果是,我应该使用哪种API?

1 个答案:

答案 0 :(得分:0)

即使使用你不能做到的用户界面也不支持