Direction
stopInstances is used to stop more than one set of VMs.
The operation is not synchronic. The user can enquire whether the VM is stopped through stopInstances.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} The status value is |
Request Example
Example1: https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=stopInstances &instanceId=BV550100010003 &chtAuthType=hwspass &version=${version} &expires=${expires} &accessKey=${accessKey} &signature=${signature} Example2: https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=stotInstances &instanceId=BV550100010003 &instanceId=BV550100010004 &chtAuthType=hwspass &version=${version} &expires=${expires} &accessKey=${accessKey} &signature=${signature}
Response Example
{ "requestId":"xxxEXAMPLE", "statusMap": { "BV550100010003": "vm_start", "BV550100010004": "vm_starting" } }