调用DescribeGatewayBlockVolumes可以查询块网关卷详情,包括操作状态、总下载数据、地址、容量、端口、启用CHAP、是否启用CHAP、总上传数据、是否使用OSS Bucket SSL、LUN ID、卷状态、是否启用等信息。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
名称 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | DescribeGatewayBlockVolumes | 系统规定参数。取值:DescribeGatewayBlockVolumes。 |
GatewayId | String | 是 | gw-000dt67z4ijngqvh*** | 网关ID。 |
IndexId | String | 否 | alex-or2020010816*** | 索引ID。如果该字段为空,则枚举该网关上的所有块网关卷的配置信息。 |
Refresh | Boolean | 否 | true | 是否强制刷新缓存。取值范围入下:
|
返回数据
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeGatewayBlockVolumes
&GatewayId=gw-000dt67z4ijngqvh***
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeGatewayBlockVolumesResponse>
<BlockVolumes>
<BlockVolume>
<TotalDownload>0</TotalDownload>
<Address>172.16.0.40</Address>
<TotalUpload>0</TotalUpload>
<ChapOutUser/>
<LunId>0</LunId>
<Size>107374182400</Size>
<ChapEnabled>false</ChapEnabled>
<Port>0</Port>
<CacheMode>Cache</CacheMode>
<LocalPath>/dev/vdb</LocalPath>
<Name>alex</Name>
<DiskType>cloud_efficiency</DiskType>
<Target/>
<OssEndpoint>oss-cn-hangzhou-internal.aliyuncs.com</OssEndpoint>
<Protocol>iSCSI</Protocol>
<Status>0</Status>
<IndexId>alex-or20200108161***</IndexId>
<Enabled>false</Enabled>
<VolumeState>1</VolumeState>
<OssBucketSsl>true</OssBucketSsl>
<ChunkSize>32768</ChunkSize>
<State>clean</State>
<OssBucketName>random***</OssBucketName>
<ChapInUser/>
<DiskId>d-bp1a8athxvwbja18h***</DiskId>
</BlockVolume>
</BlockVolumes>
<Message>successful</Message>
<RequestId>787D4AD4-5536-4C36-9FB0-D74C0554D185</RequestId>
<Code>200</Code>
<Success>true</Success>
</DescribeGatewayBlockVolumesResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"BlockVolumes" : {
"BlockVolume" : [ {
"TotalDownload" : 0,
"Address" : "172.16.0.40",
"TotalUpload" : 0,
"ChapOutUser" : "",
"LunId" : 0,
"Size" : 107374182400,
"ChapEnabled" : false,
"Port" : 0,
"CacheMode" : "Cache",
"LocalPath" : "/dev/vdb",
"Name" : "alex",
"DiskType" : "cloud_efficiency",
"Target" : "",
"OssEndpoint" : "oss-cn-hangzhou-internal.aliyuncs.com",
"Protocol" : "iSCSI",
"Status" : 0,
"IndexId" : "alex-or20200108161***",
"Enabled" : false,
"VolumeState" : 1,
"OssBucketSsl" : true,
"ChunkSize" : 32768,
"State" : "clean",
"OssBucketName" : "random***",
"ChapInUser" : "",
"DiskId" : "d-bp1a8athxvwbja18h***"
} ]
},
"Message" : "successful",
"RequestId" : "787D4AD4-5536-4C36-9FB0-D74C0554D185",
"Code" : "200",
"Success" : true
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
HttpCode | 错误码 | 错误信息 | 描述 |
400 | EmptyGatewayId | You must enter a valid ID for the gateway. | 网关ID不能为空。 |
400 | GatewayNotExist | The specified gateway does not exist. You must specify a valid parameter. | 网关不存在,请确认输入参数是否正确。 |
400 | GatewayInUpgrading | The gateway is upgrading. Try again later. | 网关正在升级中,请稍后再试。 |
400 | GatewayInOperation | The gateway is processing requests. Try again later. | 网关正在进行操作中,请稍后再试。 |
访问错误中心查看更多错误码。
该文章对您有帮助吗?
- 本页导读 (1)
- 请求参数
- 返回数据
- 示例
- 错误码