获取卷实例列表 | 大装置帮助中心
跳到主要内容

获取卷实例列表

GET /storage/afs/v2/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/virtualVolumes

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters

名称类型必须位置默认值取值范围描述
subscription_namestringpath--订阅名称.
resource_group_namestringpath--资源组.
zonestringpath--可用区.
filterstringquery--过滤条件.
order_bystringquery--排序,例:"create_time desc, name".
page_sizeintegerquery--返回当前页的最大条目数.
page_tokenstringquery--从上一个List请求返回的next_page_token值(如果有的话).

请求示例(Request Example)

curl --location 'https://management.sensecoreapi.tech/storage/afs/v2/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default/zones/cn-sh-01a/virtualVolumes?page_size=100' \
--header 'Accept-Language: zh-CN'

响应(Response)

名称类型描述
virtual_volumesarray[object]卷实例资源详情列表.
next_page_tokenstring下一页的token.
total_sizeinteger卷实例资源总数.

其中,virtual_volumes的参数如下

名称类型描述
idstring卷实例资源id.
namestring卷实例资源名称,需符合正则:^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.
display_namestring卷实例资源别名.
descriptionstring卷实例资源描述.
uidstring卷实例资源uuid.
resource_typestring卷实例资源类型, 例子: storage.afs.v2.volume.
creator_idstring卷实例创建用户id.
owner_idstring卷实例所有者id.
tenant_idstring租户id.
zonestring可用区.
statestring卷实例状态.
sku_idstring最小库存单元id.
tagsobject卷实例资源标签.
propertiesobject卷实例规格属性.
order_infoobject订单信息.
deletedboolean卷实例资源是否删除.
create_timestring卷实例资源创建时间.
update_timestring卷实例资源更新时间.

其中,state有如下情况

状态含义
CREATING创建中(默认值)
UPDATING更新中
ACTIVE已激活
DELETING删除中
DELETED已删除
FAILED失败
EXPIREDOWNGRADING到期降级中
EXPIREDOWNGRADED到期已降级
RENEWUPGRADING续订升级中
EXPIRESTOPPING到期停服中
EXPIRESTOPPED到期已停服
RENEWSTARTING续订恢复中
DOWNGRADING服务降级中
DOWNGRADE服务降级
RESTORING服务降级恢复中

其中,properties的参数如下

名称类型描述
resourcesobject规格属性.

其中,resources的参数如下

名称类型必须默认值取值范围描述
billing_itemsstring--计费项.

其中,billing_items的参数如下

名称类型必须默认值取值范围描述
capacitystring--资源容量.
capacity_unitstring--资源容量单位.

其中,order_info的参数如下

名称类型描述
billing_cycle_numberinteger购买时长.
auto_renewboolean自动续费.
currency_codestring货币代码.
payment_channelstring支付方式.
notestring订单备注.
order_typestring订单类型.
order_idstring订单id.
start_timestring订单生效日期.
payment_modelstring付费类型.
billing_modelstring计费类型.
original_idstring合同包ID.
end_timestring订单结束时间.

其中,payment_channel有如下情况

状态含义
PC_UNSPECIFIED未指定
PC_BALANCE余额支付
PC_CREDIT信用支付
PC_FROZENACCOUNT冻结款支付
PC_REMIT_OFFLINE线下汇款
PC_ALIPAY支付宝支付
PC_UNIONPAY银联支付
PC_REMIT_ONLINE在线转账
PC_CONTRACT合同包支付

其中,order_type有如下情况

状态含义
OT_UNSPECIFIED未指定
OT_ORIGINAL原始订单
OT_RENEW续费订单
OT_UPGRADED升配订单
OT_DOWNGRADED降配订单
OT_CONTRACT合同订单
OT_UNSUBSCRIBE退订订单
OT_RESIZE扩缩容订单

其中,payment_model有如下情况

状态含义
PM_UNSPECIFIED未指定
PM_PREPAID预付
PM_POSTPAID后付费

其中,billing_model有如下情况

状态含义
BM_UNSPECIFIED未指定
BM_USAGE按量计费
BM_MONTHLY包月
BM_YEARLY包年

响应示例(Response Example)

{
"virtual_volumes": [
{
"id": "/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default/zones/cn-sh-01a/virtualVolumes/f35ce15a-ab79-11ed-b7e4-1070fdcf78e9",
"name": "f35ce15a-ab79-11ed-b7e4-1070fdcf78e9",
"display_name": "AcreatePermission_test1",
"description": "",
"uid": "f3682bc7-ab79-11ed-906f-7612dd4f00de",
"resource_type": "storage.afs.v2.volume",
"creator_id": "76e1a9fa-c5c9-49b7-b42d-c4944cbe8630",
"owner_id": "76e1a9fa-c5c9-49b7-b42d-c4944cbe8630",
"tenant_id": "c28f173a-8f18-474c-866b-4ce89a612958",
"zone": "cn-sh-01a",
"state": "DELETED",
"sku_id": "de6c091b-4841-4602-b120-623ee620c8be",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 10,
"capacity_unit": "GB"
}
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_UNSPECIFIED",
"note": "",
"order_type": "OT_ORIGINAL",
"order_id": "30be1887099486319280129",
"start_time": "2023-02-13T08:39:38Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "",
"end_time": "2023-03-13T23:59:59Z",
"auto_convert_postpaid": false
},
"deleted": true,
"create_time": "2023-02-13T08:39:38.554288Z",
"update_time": "2023-02-13T08:39:38.554288Z"
},
{
"id": "/subscriptions/c28f173a-8f18-474c-866b-4ce89a612958/resourceGroups/default/zones/cn-sh-01a/virtualVolumes/f53ded02-ab79-11ed-b7e4-1070fdcf78e9",
"name": "f53ded02-ab79-11ed-b7e4-1070fdcf78e9",
"display_name": "AcreatePermission_test2",
"description": "",
"uid": "f548fc4d-ab79-11ed-906f-7612dd4f00de",
"resource_type": "storage.afs.v2.volume",
"creator_id": "76e1a9fa-c5c9-49b7-b42d-c4944cbe8630",
"owner_id": "76e1a9fa-c5c9-49b7-b42d-c4944cbe8630",
"tenant_id": "c28f173a-8f18-474c-866b-4ce89a612958",
"zone": "cn-sh-01a",
"state": "DELETED",
"sku_id": "de6c091b-4841-4602-b120-623ee620c8be",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 10,
"capacity_unit": "GB"
}
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_UNSPECIFIED",
"note": "",
"order_type": "OT_ORIGINAL",
"order_id": "30be1887099499534516225",
"start_time": "2023-02-13T08:39:41Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "",
"end_time": "2023-03-13T23:59:59Z",
"auto_convert_postpaid": false
},
"deleted": true,
"create_time": "2023-02-13T08:39:41.482396Z",
"update_time": "2023-02-13T08:39:41.482396Z"
}
],
"next_page_token": "",
"total_size": 1309
}