Direction
modifyInstanceAttribute is used Up/Downgrade VM or the installment of cloud watch.
If instanceType is included in the parameters, monitoringEnabled will be ignored.
Request Parameter
Parameter | Directions | Note |
---|---|---|
instanceId |
VM Instance ID Type : String Default Value : No Whether it is plural : No |
|
instanceType (Not a necessary parameter) |
Computing Specification Type : String Default Value : No Whether it is plural : No |
|
monitoringEnabled (Not a necessary parameter) |
Whether a monitoring device should be installed Type : Boolean Default Value : No Whether it is plural : No |
Response Parameter
Parameter | Directions | Note |
---|---|---|
requestId
(Not a necessary parameter) |
Request ID Type : JSON value : string Whether it is plural : No |
Automatically produced by the system |
statusMap |
VM Instance ID-Status List Type : JSON value : object Whether it is plural : No(Map) |
object is {string,string} The status value is |
Request Example
Example1:(Up/Downgrade VM) https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=modifyInstanceAttribute &instanceType=HC1.M.WIN &instanceId=BV550100010004 &chtAuthType=hwspass &version=${version} &expires=${expires} &accessKey=${accessKey} &signature=${signature} Example2:(The installment of Cloud Watch) https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=modifyInstanceAttribute &monitoringEnabled=true &instanceId=BV550100010004 &chtAuthType=hwspass &version=${version} &expires=${expires} &accessKey=${accessKey} &signature=${signature}
Response Example
{ "requestId":"xxxEXAMPLE", "statusMap": { "BV550100010004": "success" } }