| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | queue_type | enum | Available values:
|
| default | bandwidth | GroupField | Specifies the maximum bandwidth allowed for the queue. |
| default | priority | enum | Specifies the priority of the QoS queue policy. The larger the value, the higher the priority.Available values:
|
| default | borrow_bandwidth | boolean | Specifies whether the queue can borrow bandwidth from its parent queue. |
| default | default_queue | boolean | Specifies whether to function as the default queue when the packets do not match any other queue in QoS queue policies. |
| default | filters | asso | |
| default | sub_queue | asso | |
| default | interface | asso | |
| default | direction | enum | Available values:
|
| statistics | pkts | StorableField | |
| statistics | bytes | StorableField | |
| statistics | dropped_pkts | StorableField | |
| statistics | dropped_bytes | StorableField | |
| statistics | peak_in_hour | StorableField | |
| statistics | cur_band | StorableField | |
| statistics | avg_band | StorableField | |
| statistics | qlength | StorableField | |
| statistics | borrows | StorableField | |
| statistics | suspends | StorableField |
{
"QosRootQueue": {
"meta": {
"abstract": false,
"verbose_name": QoS Root Queue,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| name | string | ||||||||||||||||||||||
| bandwidth | GroupField (Nested Field. It should be a dict.)
|
Specifies the maximum bandwidth allowed for the queue. | |||||||||||||||||||||
| priority | enum | Specifies the priority of the QoS queue policy. The larger the value, the higher the priority.Available values:
|
|||||||||||||||||||||
| borrow_bandwidth | boolean | Specifies whether the queue can borrow bandwidth from its parent queue. | |||||||||||||||||||||
| default_queue | boolean | Specifies whether to function as the default queue when the packets do not match any other queue in QoS queue policies. | |||||||||||||||||||||
| interface | asso | ||||||||||||||||||||||
| direction | enum | Available values:
|
{
"QosRootQueue": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"QosRootQueue": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, statistics, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: name, queue_type, bandwidth, priority, borrow_bandwidth, default_queue, filters, sub_queue, pkts, bytes, dropped_pkts, dropped_bytes, peak_in_hour, cur_band, avg_band, qlength, borrows, suspends, interface, direction, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | queue_type | enum | Available values:
|
| default | bandwidth | GroupField | Specifies the maximum bandwidth allowed for the queue. |
| default | priority | enum | Specifies the priority of the QoS queue policy. The larger the value, the higher the priority.Available values:
|
| default | borrow_bandwidth | boolean | Specifies whether the queue can borrow bandwidth from its parent queue. |
| default | default_queue | boolean | Specifies whether to function as the default queue when the packets do not match any other queue in QoS queue policies. |
| default | filters | asso | |
| default | sub_queue | asso | |
| default | interface | asso | |
| default | direction | enum | Available values:
|
| statistics | pkts | StorableField | |
| statistics | bytes | StorableField | |
| statistics | dropped_pkts | StorableField | |
| statistics | dropped_bytes | StorableField | |
| statistics | peak_in_hour | StorableField | |
| statistics | cur_band | StorableField | |
| statistics | avg_band | StorableField | |
| statistics | qlength | StorableField | |
| statistics | borrows | StorableField | |
| statistics | suspends | StorableField |
{
"QosRootQueue": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"QosRootQueue": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"QosRootQueue": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"QosRootQueue": {
"instance_id":<instance_id>,
"filters":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| src_ip | ip4addr | |
| src_mask | string | |
| src_port | uint32 | |
| des_ip | ip4addr | |
| des_mask | string | |
| des_port | uint32 | |
| protocol | enum | Available values:
|
| priority | uint32 | The larger the value, the higher the priority. When two QoS filter rules with the same priority are matched, the QoS filter rules will be hit in the round robin method. |
{
"QosFilter": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"QosRootQueue": {
"instance_id":<instance_id>,
"sub_queue":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| bandwidth | GroupField | Specifies the maximum bandwidth allowed for the queue. |
| priority | enum | Specifies the priority of the QoS queue policy. The larger the value, the higher the priority.Available values:
|
| borrow_bandwidth | boolean | Specifies whether the queue can borrow bandwidth from its parent queue. |
| default_queue | boolean | Specifies whether to function as the default queue when the packets do not match any other queue in QoS queue policies. |
{
"QosSubQueue": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"QosRootQueue": {
"instance_id":<instance_id>,
"interface":<value>
}
}