查詢指定QoS策略
更新時間 2025-09-29 17:49:40
最近更新時間: 2025-09-29 17:49:40
分享文章
本節主要介紹如何使用API查詢指定QoS策略。
此操作用來查詢指定QoS策略。
請求語法
GET /rest/v1/system/qos/qosName HTTP/1.1
Date: date
Content-Type: application/json; charset=utf-8
Host: ip:port
Authorization: authorization請求參數
| 參數 | 類型 | 描述 | 是否必須 |
|---|---|---|---|
| qosName | String | 指定要查詢的QoS策略名稱。 | 是 |
響應結果
| 名稱 | 類型 | 描述 |
|---|---|---|
| qosName | String | QoS策略名稱。 |
| IOPS | Long | 每秒能夠進行讀寫操作次數的最大值。 說明 -1表示不限制。 |
| readIOPS | Long | 每秒能夠進行讀操作次數的最大值。 說明 -1表示不限制。 |
| writeIOPS | Long | 每秒能夠進行寫操作次數的最大值。 說明 -1表示不限制。 |
| Bps | Long | 每秒可傳輸數據量的最大值,單位是Bytes/s。 說明 -1表示不限制。 |
| readBps | Long | 讀帶寬上限,單位是Bytes/s。 說明 -1表示不限制。 |
| writeBps | Long | 寫帶寬上限,單位是Bytes/s。 說明 -1表示不限制。 |
| IOPSBurst | Long | 使用Burst功能時,每秒能夠進行讀寫操作次數的最大值。 說明 -1表示不限制。 |
| readIOPSBurst | Long | 使用Burst功能時,每秒能夠進行讀操作次數的最大值。 說明 -1表示不限制。 |
| writeIOPSBurst | Long | 使用Burst功能時,每秒能夠進行寫操作次數的最大值。 說明 -1表示不限制。 |
| BpsBurst | Long | 使用Burst功能時,每秒可傳輸的數據量最大值,單位是Bytes/s。 說明 -1表示不限制。 |
| readBpsBurst | Long | 使用Burst功能時,讀帶寬上限,單位是Bytes/s。 說明 -1表示不限制。 |
| writeBpsBurst | Long | 使用Burst功能時,寫帶寬上限,單位是Bytes/s。 說明 -1表示不限制。 |
| IOPSBurstSecs | Long | 使用Burst功能時,按照Burst上限的能力進行讀寫操作所能持續的時間。單位是秒。 |
| readIOPSBurstSecs | Long | 使用Burst功能時,按照Burst上限的能力進行讀操作所能持續的時間。單位是秒。 |
| writeIOPSBurstSecs | Long | 使用Burst功能時,按照Burst上限的能力進行寫操作所能持續的時間。單位是秒。 |
| BpsBurstSecs | Long | 使用Burst功能時,按照Burst上限的流量能力所能持續的時間。單位是秒。 |
| readBpsBurstSecs | Long | 使用Burst功能時,按照Burst上限的讀流量能力所能持續的時間。單位是秒。 |
| writeBpsBurstSecs | Long | 使用Burst功能時,按照Burst上限的寫流量能力所能持續的時間。單位是秒。 |
| createTime | Long | QoS策略創建的時間。 |
| reclaimPolicy | String | QoS策略的回收策略:
|
| description | String | QoS策略的描述信息。 |
請求示例
查詢QoS策略QoS6。
GET /rest/v1/system/qos/QoS6 HTTP/1.1
Date: Thu, 03 Jul 2025 08:44:58 GMT
Authorization: HBlock userName:signature
Host: 192.168.0.64:1443 響應示例
HTTP/1.1 200 OK
x-hblock-request-id: bc5613e65a3544e996002a403674e331
Connection: keep-alive
Content-Length: 496
Date: Thu, 03 Jul 2025 08:44:58 GMT
Content-Type: application/json;charset=utf-8
Server: HBlock
{
"data": {
"qosName": "QoS6",
"readIOPS": 5000000,
"writeIOPS": 6000000,
"readBps": 1073741824,
"writeBps": 1073741824,
"readIOPSBurst": 5000000,
"writeIOPSBurst": 5000000,
"readBpsBurst": 2147483648,
"writeBpsBurst": 2147483648,
"readIOPSBurstSecs": 10,
"writeIOPSBurstSecs": 10,
"readBpsBurstSecs": 100,
"writeBpsBurstSecs": 100,
"createTime": 1751437708609,
"reclaimPolicy": "Retain",
"description": "It is Qos6",
"IOPS": 5000000,
"Bps": 1073741824,
"IOPSBurst": 5000000,
"BpsBurst": 2147483648,
"IOPSBurstSecs": 10,
"BpsBurstSecs": 100
}
}