Directions
To provide all the data of VM, including the latest data of CPU, DISK, and Network (not instant)
Request Parameter
| Parameter | Directions | Note |
|---|---|---|
| instanceId |
VM Instance ID Type : String Default Value : No Occasion : To enter VM ID according to inquiry requirements Whether it is plural : Yes |
It is able to support multiple values |
Response Parameter
| Parameter | Directions | Note |
|---|---|---|
| requestId |
Request ID Type : JSON value : string Whether it is plural : No |
It is automatically produced by the system |
| InstancesStatsList |
VM Status Information Type : JSON value : array Whether it is plural : No |
InstancesStatsEntry List |
Request Example
https://hws/cboss-hws-web/api/?Action= getInstancesStats
&instanceId = BV550100010003
&chtAuthType=hwspass
&version=${version}
&expires=${expires}
&accessKey=${accessKey}
&signature=${signature}
Response Example
{
"requestId": "xxxEXAMPLE",
"instanceId": "BV550100010003",
"cpuUsage" : 13.52,
"cpuUpdateTime" : "2012-01-01T01:01:01Z" ,
"disks":[
{
"disklabel": "C",
"diskSize": 10000000,
"diskUsed": 6000000,
"diskFree": 4000000,
"diskUsage":60
},
{
"disklabel": "D",
"diskSize": 10000000,
"diskUsed": 6000000,
"diskFree": 4000000,
"diskUsage":60
}
],
"diskUpdateTime" : "2012-01-01T01:01:01Z" ,
"memorydata":{
"memfree":1277173760,
"memtotal":1964703744,
"memusage":12.86629807531939,
"memused":687529984
},
"vmnics":[
{
"ip":"210.71.238.21",
"label":"eth0",
"rxBytes":35,
"txBytes":32
}
],
"networks":[
{
"ip":"10.144.100.99",
"networkIn":100035,
"networkOut":8000
}
],
"networkUpdateTime" : "2012-01-01T01:01:01Z",
"powerStatus" : "PoweredOn"
}
If network has no value, it will show: "networks":[]