DeleteNicQoS

API Request

URLs
DELETE zstack/v1/vm-instances/{uuid}/nic-qos?direction={direction}

Headers

Authorization: OAuth the-session-uuid
Body
{
  "params": {
    "direction": "example"
  },
  "systemTags": [],
  "userTags": []
}
Note: In the preceding sample, both systemTags and userTags are optional. These two fields can be included in the body structure.
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 2c879e6be1c64b079aec599845576657" \
-X DELETE http://localhost:8080/zstack/v1/vm-instances/9f9a2eb79c9b4fe5881b109033020899/nic-QoS?direction=in
Request Parameters
Name Type Location Description Optional Value Starting Version
uuid String url The VM NIC UUID. 0.6
direction String url The direction, including inbound and outbound.
  • in
  • out
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
DeleteNicQoSAction action = new DeleteNicQoSAction();
action.uuid = "27b5b55e69284a8ea07871661de562a4";
action.direction = "example";
action.sessionId = "d83ac78201fc4ad38b17261bba4dc17b";
DeleteNicQoSAction.Result res = action.call();
Python SDK
DeleteNicQoSAction action = DeleteNicQoSAction()
action.uuid = "efb14319aaf14069a1066f2b07a0e328"
action.direction = "example"
action.sessionId = "a0a6598343404cc38356abfc58877bd8"
DeleteNicQoSAction.Result res = action.call()