GetVmInstanceHaLevel

API Request

URLs
GET zstack/v1/vm-instances/{uuid}/ha-levels
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 92f80693e3d641c68c014d4f762c0b70" \
-X GET http://localhost:8080/zstack/v1/vm-instances/76d39c6862b840a3aa4568d83db99022/ha-levels
Request Parameters
Name Type Location Description Optional Value Starting Version
uuid String url The VM instance UUID. 0.6
systemTags List query Optional. The system tags. 0.6
userTags List query Optional. The user tags. 0.6

API Response

Sample Response
{
  "level": "NeverStop"
}
Name Type Description Starting Version
level String The HA level of the VM instance, including NeverStop and OnHostFailure. 0.6
success boolean 0.6
error ErrorCode The error code. If not null, the operation fails, or vice versa. For more information, see error. 0.6
#error
Name Type Description Starting Version
code String The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. 0.6
description String The brief description of the error. 0.6
details String The details about the error. 0.6
elaboration String The reserved field. Default value: null. 0.6
opaque LinkedHashMap The reserved field. Default value: null. 0.6
cause ErrorCode The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. 0.6

SDK Sample

Java SDK
GetVmInstanceHaLevelAction action = new GetVmInstanceHaLevelAction();
action.uuid = "76d39c6862b840a3aa4568d83db99022";
action.sessionId = "ed55da0421704d2ca59ff0106cae94bb";
GetVmInstanceHaLevelAction.Result res = action.call();
Python SDK
GetVmInstanceHaLevelAction action = GetVmInstanceHaLevelAction()
action.uuid = "76d39c6862b840a3aa4568d83db99022"
action.sessionId = "559a84ded13d4e88a7fdb01f2dfd47f0"
GetVmInstanceHaLevelAction.Result res = action.call()