我只是通过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?
答案 0 :(得分:0)
即使使用你不能做到的用户界面也不支持