Direction
terminateInstances is used to remove designated VM.
If there are subsidiary products attached to the VM (storage space, load balance, firewall, VPN), the operation will fail. Please remove related subsidiary products first.Request Parameter
Parameter | Directions | Note |
---|---|---|
instanceId | Source VM Instance ID Type : String Default Value : No Whether it is plural : No |
Multiple values can be supported. |
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} For Example: { "BV550100010003": "process success ", "BV550100010004": "process fail " } |
Request Example
Example1: https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=terminateInstances &instanceId=BV550100010003 &chtAuthType=hwspass &version=${version} &expires=${expires} &accessKey=${accessKey} &signature=${signature} Example2: https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=terminateInstances &instanceId=BV550100010003 &instanceId=BV550100010004 &chtAuthType=hwspass &version=${version} &expires=${expires} &accessKey=${accessKey} &signature=${signature}
Response Example
{ "requestId":"xxxEXAMPLE", "statusMap": { "BV550100010003": "process success", "BV550100010004": "process fail" } }