CaaS / CVPC API Developer Center

VM

Direction

startInstances is used to reboot more than one set of VM. This operation is not synchronic. The user can enquire whether the reboot is complete through startInstances.

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": "vm_start",
"BV550100010004": "vm_starting"
}

The status value is
vm_start: Started
vm_starting: Starting
vm_stop: Shut down

vm_stopping: Shutting down

Request Example

Example1:
https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=startInstances
&instanceId=BV550100010003
&chtAuthType=hwspass
&version=${version}
&expires=${expires}
&accessKey=${accessKey}
&signature=${signature}

Example2:
https://hws.hicloud.hinet.net/cloud_hws/api/hws/?action=startInstances
&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"
	}
}
		

Error Code

OrderProcessFail