创建存储卷资源
创建存储卷资源
Path Parameters
订阅
资源组
可用区
Possible values: <= 63 characters
存储卷资源名称
Request Body required
Possible values: <= 63 characters
存储卷资源别名
存储卷资源描述
存储卷资源的资源类型
最小库存单元id
tags object
properties object
order_info object
- 200
- default
OK
Schema
存储卷资源 id
存储卷资源名称
Possible values: <= 63 characters
存储卷资源别名
存储卷资源描述
存储卷资源的uuid
存储卷资源的资源类型
创建VirtualVolume resource的用户id
拥有VirtualVolume resource的用户id
租户id
可用区
Possible values: [CREATING
, UPDATING
, ACTIVE
, DELETING
, DELETED
, FAILED
, EXPIREDOWNGRADING
, EXPIREDOWNGRADED
, RENEWUPGRADING
, EXPIRESTOPPING
, EXPIRESTOPPED
, RENEWSTARTING
, DOWNGRADING
, DOWNGRADE
, RESTORING
]
存储卷资源状态
最小库存单元id
tags object
properties object
order_info object
是否删除存储卷资源
创建存储卷资源资源的时间
上一次更新VirtualVolume resource的时间
{
"id": "string",
"name": "string",
"display_name": "string",
"description": "string",
"uid": "string",
"resource_type": "string",
"creator_id": "string",
"owner_id": "string",
"tenant_id": "string",
"zone": "string",
"state": "CREATING",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:40.003Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:40.003Z",
"auto_convert_postpaid": true
},
"deleted": true,
"create_time": "2025-06-18T11:15:40.003Z",
"update_time": "2025-06-18T11:15:40.003Z"
}
Default error response
Schema
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/afs/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/virtualVolumes/:virtual_volume_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "string",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "EB"
}
}
},
"order_info": {
"billing_cycle_number": 0,
"auto_renew": true,
"currency_code": "string",
"payment_channel": "PC_UNSPECIFIED",
"note": "string",
"order_type": "OT_UNSPECIFIED",
"order_id": "string",
"start_time": "2025-06-18T11:15:39.770Z",
"payment_model": "PM_UNSPECIFIED",
"billing_model": "BM_UNSPECIFIED",
"original_id": "string",
"end_time": "2025-06-18T11:15:39.770Z",
"auto_convert_postpaid": true
}
}'