GetNicQoS
API Request
URLs
GET zstack/v1/vm-instances/{uuid}/QoSHeaders
Authorization: OAuth the-session-uuidCurl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth 2715e1f9803745c79e73079012aea97e" \
-X GET http://localhost:8080/zstack/v1/vm-instances/e3594dc6c70e4d6f8488c4d7c69807e6/nic-qosRequest Parameters
| Name | Type | Location | Description | Optional Value | Starting Version |
|---|---|---|---|---|---|
| uuid | String | url | The VM NIC 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
{
"outboundBandwidth": 100000.0,
"inboundBandwidth": 200000.0,
"outboundBandwidthUpthreshold": 300000.0,
"inboundBandwidthUpthreshold": 300000.0
}
| Name | Type | Description | Starting Version |
|---|---|---|---|
| outboundBandwidth | long | 0.6 | |
| inboundBandwidth | long | 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
GetNicQoSAction action = new GetNicQoSAction();
action.uuid = "9d6e28b144a34b01807a5a9d83ba005c";
action.sessionId = "883ff8e0d0cd43ab91005df23ad062ee";
GetNicQoSAction.Result res = action.call();Python
SDK
GetNicQoSAction action = GetNicQoSAction()
action.uuid = "c8d27e7c11f3462cb623068b0e64e39e"
action.sessionId = "39f7aad9e84841ffbbe69d2cd1f37f57"
GetNicQoSAction.Result res = action.call()