VM Related Interfaces

Get Virtual Machine NIC Rate Limit

GET/zstack/v1/vm-instances/{uuid}/nic-qos

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/vm-instances/479590eada5337caa477f4a604f1016b/nic-qos

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
uuidStringurlUUID of the Virtual Machine NIC 0.6
systemTags (Optional)Listquery  0.6
userTags (Optional)Listquery  0.6

API Response

Response Example

{
  "outboundBandwidth": 100000.0,
  "inboundBandwidth": 200000.0,
  "outboundBandwidthUpthreshold": 300000.0,
  "inboundBandwidthUpthreshold": 300000.0
}
NameTypeDescriptionStarting Version
outboundBandwidthlong 0.6
inboundBandwidthlong 0.6
successboolean 0.6
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation is successful. For details, see error0.6

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier for the error, for example SYS.1000, HOST.10010.6
descriptionStringBrief description of the error0.6
detailsStringDetailed error information0.6
elaborationStringReserved field, defaults to null0.6
opaqueLinkedHashMapReserved field, defaults to null0.6
causeErrorCodeRoot cause. The source error that caused the current error. If there is no original error, this field is null0.6

SDK Examples

Java SDK

GetNicQosAction action = new GetNicQosAction();
action.uuid = "479590eada5337caa477f4a604f1016b";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetNicQosAction.Result res = action.call();

Python SDK

GetNicQosAction action = GetNicQosAction()
action.uuid = "479590eada5337caa477f4a604f1016b"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetNicQosAction.Result res = action.call()