创建块存储资源
创建块存储资源
Path Parameters
订阅
资源组
可用区
Possible values: <= 63 characters
块存储资源名称
Request Body required
Possible values: <= 63 characters
块存储资源别名
块存储资源描述
Default value: storage.abs.v1.disk
块存储资源的资源类型
最小库存单元id
tags object
properties object
order_info object
- 200
- default
OK
Schema
块存储资源 id
块存储资源名称
Possible values: <= 63 characters
块存储资源别名
块存储资源描述
块存储资源的uuid
Default value: storage.abs.v1.disk
块存储资源的资源类型
创建DiskStorage resource的用户id
拥有DiskStorage resource的用户id
租户id
可用区
Possible values: [CREATING
, UPDATING
, ACTIVE
, DELETING
, DELETED
, FAILED
, EXPIREDOWNGRADING
, EXPIREDOWNGRADED
, RENEWUPGRADING
, EXPIRESTOPPING
, EXPIRESTOPPED
, RENEWSTARTING
, DOWNGRADING
, DOWNGRADE
, RESTORING
, ATTACHING
, INUSE
, DETACHING
, DETACHFAILED
, ATTACHFAILED
, DELETEDFAILED
, RESIZING
, RESIZEFAILED
, ARREARSTOPPING
, ARREARSTOPPED
, RECHARGESTARTING
, RESIZECANCELING
]
Default value: ACTIVE
块存储资源状态
最小库存单元id
tags object
properties object
order_info object
是否删除块存储资源
创建块存储资源资源的时间
上一次更新DiskStorage resource的时间
{
"id": "string",
"name": "string",
"display_name": "string",
"description": "string",
"uid": "string",
"resource_type": "storage.abs.v1.disk",
"creator_id": "string",
"owner_id": "string",
"tenant_id": "string",
"zone": "string",
"state": "ACTIVE",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.489Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.489Z",
"auto_convert_postpaid": true
},
"deleted": true,
"create_time": "2025-04-23T03:43:49.489Z",
"update_time": "2025-04-23T03:43:49.489Z"
}
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/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'
curl -L -X POST 'https://management.sensecoreapi.cn/storage/abs/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/disks/:disk_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"display_name": "string",
"description": "string",
"resource_type": "storage.abs.v1.disk",
"sku_id": "string",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 0,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "string",
"image_id": "string"
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_BALANCE",
"note": "string",
"order_type": "OT_ORIGINAL",
"order_id": "string",
"start_time": "2025-04-23T03:43:49.483Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "string",
"end_time": "2025-04-23T03:43:49.483Z",
"auto_convert_postpaid": true
}
}'