Queries details about iSCSI gateway volumes, such as operation status, data transfer, address, capacity, port, CHAP, OSS Bucket SSL, LUN ID, and volume status.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hcs-sgw:DescribeGatewayBlockVolumes |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayId |
string |
Yes |
The ID of the gateway. |
gw-000dt67z4ijngqvh*** |
| IndexId |
string |
No |
The index ID. If this parameter is left empty, the configurations of all iSCSI gateway volumes on the gateway are enumerated. |
alex-or2020010816*** |
| Refresh |
boolean |
No |
Specifies whether to forcibly refresh the cache. Valid values:
|
true |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| BlockVolumes |
object |
||
| BlockVolume |
array<object> |
The information about the iSCSI gateway volume. |
|
|
object |
|||
| Status |
integer |
The operation status. Valid values:
|
0 |
| ChunkSize |
integer |
The storage allocation unit. Unit: bytes. The storage allocation unit can be 8 KB, 16 KB, 32 KB, 64 KB, or 128 KB. The default value is 32 KB. |
32768 |
| TotalUpload |
integer |
The total amount of data that is uploaded. Unit: bytes. |
123214564 |
| DiskType |
string |
The type of the cache disk. |
cloud_efficiency |
| DiskId |
string |
The ID of the cache disk. |
d-bp1a8athxvwbja18*** |
| Port |
integer |
The port. |
0 |
| IndexId |
string |
The index ID. |
alex-or2020010816*** |
| TotalDownload |
integer |
The total amount of data that is downloaded. Unit: bytes. |
56342324 |
| ChapEnabled |
boolean |
Indicates whether CHAP is enabled. |
true |
| Enabled |
boolean |
Indicates whether the block volume is enabled. |
true |
| Address |
string |
The service IP address. |
172.16.0.22 |
| Name |
string |
The name of the block volume. |
alex |
| Target |
string |
The volume target. |
iqn************** |
| OssEndpoint |
string |
The region of the Object Storage Service (OSS) bucket that corresponds to the block volume. Note You must distinguish between internal and public endpoints. If the OSS bucket and the gateway are in the same region, we recommend that you use an internal endpoint, such as oss-cn-hangzhou-internal.aliyuncs.com. |
oss-cn-hangzhou-internal.aliyuncs.com |
| OssBucketName |
string |
The name of the OSS bucket. |
random*** |
| CacheMode |
string |
The cache mode. Valid values:
|
Cache |
| State |
string |
The cache status. Valid values:
|
clean |
| Protocol |
string |
The protocol. |
iSCSI |
| LunId |
integer |
The LUN ID. |
0 |
| OssBucketSsl |
boolean |
Indicates whether SSL is used for the OSS bucket. |
true |
| VolumeState |
integer |
The volume status. Valid values:
|
1 |
| LocalPath |
string |
The local path of the cache disk. |
/dev/vdb |
| ChapInUser |
string |
The inbound CHAP user. |
alex*** |
| Size |
integer |
The capacity. Unit: bytes. |
107374182400 |
| OssBucketRegionId |
string |
The region where the Object Storage Service (OSS) bucket corresponding to the block volume is located. |
|
| Message |
string |
The description of the request result. |
successful |
| RequestId |
string |
The request ID. |
787D4AD4-5536-4C36-9FB0-D74C0554D344 |
| Code |
string |
The status code. A status code of 200 indicates that the request is successful. |
200 |
| Success |
boolean |
Indicates whether the request is successful. |
true |
Examples
Success response
JSON format
{
"BlockVolumes": {
"BlockVolume": [
{
"Status": 0,
"ChunkSize": 32768,
"TotalUpload": 123214564,
"DiskType": "cloud_efficiency",
"DiskId": "d-bp1a8athxvwbja18***",
"Port": 0,
"IndexId": "alex-or2020010816***",
"TotalDownload": 56342324,
"ChapEnabled": true,
"Enabled": true,
"Address": "172.16.0.22",
"Name": "alex",
"Target": "iqn**************",
"OssEndpoint": "oss-cn-hangzhou-internal.aliyuncs.com",
"OssBucketName": "random***",
"CacheMode": "Cache",
"State": "clean",
"Protocol": "iSCSI",
"LunId": 0,
"OssBucketSsl": true,
"VolumeState": 1,
"LocalPath": "/dev/vdb",
"ChapInUser": "alex***",
"Size": 107374182400,
"OssBucketRegionId": ""
}
]
},
"Message": "successful",
"RequestId": "787D4AD4-5536-4C36-9FB0-D74C0554D344",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EmptyGatewayId | You must enter a valid ID for the gateway. | You must enter a valid ID for the gateway. |
| 400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | The specified gateway does not exist. You must specify a valid parameter. |
| 400 | GatewayInUpgrading | The gateway is upgrading. Try again later. | The gateway is upgrading. Try again later. |
| 400 | GatewayInOperation | The gateway is processing requests . Try again later. | The gateway is busy. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.