更新块存储云盘名称
接口描述
PATCH /storage/abs/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/disks/{disk_name}
请求头(Request Header)
请求参数(Request Parameters)
名称 | 类型 | 必须 | 位置 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|---|
subscription_name | string | 是 | path | - | - | 订阅标识 |
resource_group_name | string | 是 | path | - | - | 资源组标识 |
zone | string | 是 | path | - | - | 可用区 |
disk_name | string | 是 | path | - | ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$ | 块资源名称 |
请求体(Request Body)
参数名 | 类型 | 必须 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|
display_name | string | 是 | - | - | 块资源展示名称 |
description | string | 否 | - | - | 描述信息 |
请求示例(Request Example)
curl --request PATCH 'https://management.sensecoreapi.dev/storage/abs/v1/subscriptions/e995c396-83f6-4a1b-a055-2acb8bc7cf1f/resourceGroups/default/zones/cn-sh-01e/disks/c6d8b27b-55b7-4ca3-992d-7f369e5076cb'\
-H 'authority: management.sensecoreapi.dev' \
-H 'accept: application/json' \
-H 'accept-language: zh-CN' \
-H 'authorization: xxxxxxxx' \
-d '{"display_name":"测试修改名称1"}'
响应参数,返回disk信息(Response Parameters)
名称 | 类型 | 描述 |
---|---|---|
id | string | 资源ID |
name | string | 资源名称 |
display_name | string | 资源别名 |
description | string | 资源描述信息 |
uid | string | 资源实例UUID |
resource_type | string | 资源类型 |
creator_id | string | 创建者标识 |
owner_id | string | 拥有者标识 |
tenant_id | string | 租户标识 |
zone | string | 可用区 |
state | string | 资源状态 |
sku_id | string | 云管sku_id |
tags | map | 资源标签map<string, string> |
properties | object | 资源属性 |
order_info | object | 订单信息 |
deleted | bool | 是否删除资源 |
create_time | string | 资源创建时间 |
update_time | string | 资源最新更新时间 |
响应示例(Response Example)
{
"id": "/subscriptions/e995c396-83f6-4a1b-a055-2acb8bc7cf1f/resourceGroups/default/zones/cn-sh-01e/disks/c6d8b27b-55b7-4ca3-992d-7f369e5076cb",
"name": "c6d8b27b-55b7-4ca3-992d-7f369e5076cb",
"display_name": "测试修改名称1",
"description": "",
"uid": "2330e95e-6681-11ef-9e0a-523e95af74a9",
"resource_type": "storage.abs.v1.disk",
"creator_id": "57463cd8-3ee9-4bf4-b139-8890fd26c914",
"owner_id": "57463cd8-3ee9-4bf4-b139-8890fd26c914",
"tenant_id": "e995c396-83f6-4a1b-a055-2acb8bc7cf1f",
"zone": "cn-sh-01e",
"state": "INUSE",
"sku_id": "3583abdc-f096-4b82-a0ff-15a13a7b5c1c",
"tags": {},
"properties": {
"resources": {
"billing_items": {
"capacity": 20,
"capacity_unit": "GB"
},
"disk_type": "CLOUDSSD",
"system_disk": false,
"ecs_lifecycle": false,
"snapshot_id": "",
"image_id": ""
}
},
"order_info": {
"billing_cycle_number": 1,
"auto_renew": false,
"currency_code": "CNY",
"payment_channel": "PC_UNSPECIFIED",
"note": "",
"order_type": "OT_ORIGINAL",
"order_id": "141c2091410124043829248",
"start_time": "2024-08-30T03:37:09Z",
"payment_model": "PM_PREPAID",
"billing_model": "BM_MONTHLY",
"original_id": "",
"end_time": "2024-09-30T15:59:59Z",
"auto_convert_postpaid": false
},
"deleted": false,
"create_time": "2024-08-30T03:37:54.844913Z",
"update_time": "2024-09-01T11:30:34.968929Z"
}