DeleteVmInstanceHaLevel

API Request

URLs
DELETE zstack/v1/instances/{uuid}/ha-levels
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 038c30608df54956bea7e06d6adf7ffe" \
-X DELETE 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 body Optional. The system tags. 0.6
userTags List body Optional. The user tags. 0.6

API Response

When the API succeeded, an empty JSON structure {} is returned. When the API failed, the returned JSON structure includes an error field. For example,
{
    "error": {
        "code": "SYS.1001",
        "description": "A message or a operation timeout",
        "details": "Create VM on KVM timeout after 300s"
    }
}

SDK Sample

Java SDK
DeleteVmInstanceHaLevelAction action = new DeleteVmInstanceHaLevelAction();
action.uuid = "76d39c6862b840a3aa4568d83db99022";
action.sessionId = "0cc42e2185664cd6a762ea527075e9f9";
DeleteVmInstanceHaLevelAction.Result res = action.call();
Python SDK
DeleteVmInstanceHaLevelAction action = DeleteVmInstanceHaLevelAction()
action.uuid = "76d39c6862b840a3aa4568d83db99022"
action.sessionId = "55fbd55cda2a45f3abbd540620846039"
DeleteVmInstanceHaLevelAction.Result res = action.call()