更新块存储云盘名称 | 大装置帮助中心
跳到主要内容

更新块存储云盘名称

接口描述

PATCH /storage/abs/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/disks/{disk_name}

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters)

名称类型必须位置默认值取值范围描述
subscription_namestringpath--订阅标识
resource_group_namestringpath--资源组标识
zonestringpath--可用区
disk_namestringpath-^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$块资源名称

请求体(Request Body)

参数名类型必须默认值取值范围描述
display_namestring--块资源展示名称
descriptionstring--描述信息

请求示例(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)

名称类型描述
idstring资源ID
namestring资源名称
display_namestring资源别名
descriptionstring资源描述信息
uidstring资源实例UUID
resource_typestring资源类型
creator_idstring创建者标识
owner_idstring拥有者标识
tenant_idstring租户标识
zonestring可用区
statestring资源状态
sku_idstring云管sku_id
tagsmap资源标签map<string, string>
propertiesobject资源属性
order_infoobject订单信息
deletedbool是否删除资源
create_timestring资源创建时间
update_timestring资源最新更新时间

响应示例(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"
}