调用ListVolumes列出用户的存储卷。
*
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListVolumes |
操作接口名,系统规定参数,取值:ListVolumes。 |
PageNumber | Integer | 否 | 1 |
显示的页码,起始值为 1。 |
PageSize | Integer | 否 | 10 |
每页显示的条数,取值1-50。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
PageNumber | Integer | 1 |
当前页码。 |
PageSize | Integer | 1 |
本页条数。 |
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
请求ID。 |
TotalCount | Integer | 1 |
列表条目总数。 |
Volumes | Array of VolumeInfo |
挂载到 E-HPC 的存储卷信息数组。 |
|
VolumeInfo | |||
AdditionalVolumes | Array of VolumeInfo |
附加挂载的存储卷信息列表。 |
|
VolumeInfo | |||
JobQueue | String | all.q |
作业所属队列。 |
LocalDirectory | String | /testopt |
本地挂载目录。 |
Location | String | / | |
RemoteDirectory | String | / |
要挂载的远程目录。 |
Role | String | compute |
挂载到NAS的角色名称。如,compute,scheduler,login等。 |
VolumeId | String | vvvv86y3 |
存储卷实例 ID。 |
VolumeMountpoint | String | vvvv86y3-rgd51.cn-hangzhou.nas.aliyuncs.com |
挂载点地址。 |
VolumeProtocol | String | nfs |
存储协议。 |
VolumeType | String | nas |
存储卷类型。 |
ClusterId | String | ehpc-hz-1234567 |
集群ID。 |
ClusterName | String | cluster1 |
集群名称。 |
RegionId | String | cn-hangzhou |
地域ID。 |
RemoteDirectory | String | /test1 |
要挂载的远程目录。 |
VolumeId | String | xxxxxbc8a |
存储卷实例 ID。 |
VolumeMountpoint | String | xxxxxbc8a-rgd51.cn-hangzhou.nas.aliyuncs.com |
挂载点地址。 |
VolumeProtocol | String | nfs |
存储协议类型。 |
VolumeType | String | nas |
存储卷类型。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListVolumes
&<公共请求参数>
正常返回示例
XML
格式
<TotalCount>1</TotalCount>
<Volumes>
<VolumeInfo>
<VolumeProtocol>nfs</VolumeProtocol>
<RemoteDirectory>/test1</RemoteDirectory>
<VolumeId>xxxxxbc8a</VolumeId>
<VolumeType>nas</VolumeType>
<ClusterId>ehpc-hz-1234567</ClusterId>
<ClusterName>cluster1</ClusterName>
<RegionId>cn-hangzhou</RegionId>
<VolumeMountpoint>xxxxxbc8a-rgd51.cn-hangzhou.nas.aliyuncs.com</VolumeMountpoint>
</VolumeInfo>
<VolumeInfo>
<AdditionalVolumes>
<VolumeInfo>
<Role>compute</Role>
<VolumeProtocol>nfs</VolumeProtocol>
<LocalDirectory>/testopt</LocalDirectory>
<RemoteDirectory>/</RemoteDirectory>
<VolumeId>vvvv86y3</VolumeId>
<VolumeType>nas</VolumeType>
<JobQueue>all.q</JobQueue>
<VolumeMountpoint>vvvv86y3-rgd51.cn-hangzhou.nas.aliyuncs.com</VolumeMountpoint>
<Location> </Location>
</VolumeInfo>
</AdditionalVolumes>
</VolumeInfo>
</Volumes>
<PageSize>1</PageSize>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<PageNumber>1</PageNumber>
JSON
格式
{
"TotalCount":"1",
"Volumes":{
"VolumeInfo":[
{
"VolumeProtocol":"nfs",
"RemoteDirectory":"/test1",
"VolumeId":"xxxxxbc8a",
"VolumeType":"nas",
"ClusterId":"ehpc-hz-1234567",
"ClusterName":"cluster1",
"RegionId":"cn-hangzhou",
"VolumeMountpoint":"xxxxxbc8a-rgd51.cn-hangzhou.nas.aliyuncs.com"
},
{
"AdditionalVolumes":{
"VolumeInfo":[
{
"Role":"compute",
"VolumeProtocol":"nfs",
"LocalDirectory":"/testopt",
"RemoteDirectory":"/",
"VolumeId":"vvvv86y3",
"VolumeType":"nas",
"JobQueue":"all.q",
"VolumeMountpoint":"vvvv86y3-rgd51.cn-hangzhou.nas.aliyuncs.com",
"Location":" "
}
]
}
}
]
},
"PageSize":"1",
"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368",
"PageNumber":"1"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 请求失败,服务暂时不可用 |
访问错误中心查看更多错误码。