查询指定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
}
}