检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
"metadata" : { "key1" : "value1", "key2" : "value2" } } 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2"
"metadata" : { "key1" : "value1", "key2" : "value2" } } 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2"
"metadata" : { "key1" : "value1", "key2" : "value2" } } 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2"
"metadata" : { "key1" : "value1", "key2" : "value2" } } 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2"
"metadata" : { "key1" : "value1", "key2" : "value2" } } 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2"
"tags" : [ { "value" : "value1", "key" : "key1" }, { "value" : "value2", "key" : "key2" } ] } 状态码: 400 Bad Request { "error"
{ "metadata" : { "key1" : "value1", "key2" : "value2" } } 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1" } } 状态码: 400
{ "metadata" : { "key1" : "value1", "key2" : "value2" } } 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1" } } 状态码: 400
ot_id}/metadata 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2" } } 状态码: 400 Bad Request { "error" : {
me_id}/metadata 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2" } } 状态码: 400 Bad Request { "error" : {
dvolumes/tags 响应示例 状态码: 200 标签列表。 { "tags" : { "key_0" : [ "value_0" ], "key_1" : [ "value_1", "value_2", "value_3", "value_4" ]
me_id}/metadata 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2" } } 状态码: 400 Bad Request { "error" : {
ot_id}/metadata 响应示例 状态码: 200 OK { "metadata" : { "key1" : "value1", "key2" : "value2" } } 状态码: 400 Bad Request { "error" : {
_id}/metadata/{key} evs:snapshots:get √ × 删除云硬盘快照的单个元数据(Cinder) DELETE /v2/{project_id}/snapshots/{snapshot_id}/metadata/{key} evs:snapshots:delete
environment ak := os.Getenv("CLOUD_SDK_AK") sk := os.Getenv("CLOUD_SDK_SK") auth := basic.NewCredentialsBuilder(). WithAk(ak).
The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and
标记接受云硬盘过户操作。 表4 CinderAcceptVolumeTransferOption 参数 是否必选 参数类型 描述 auth_key 是 String 云硬盘过户的身份认证密钥。 创建云硬盘过户时会返回该身份认证密钥。 响应参数 状态码: 202 表5 响应Body参数
lume_id}/metadata/{key} evs:volumes:get √ × 删除云硬盘的单个元数据(Cinder) DELETE /v2/{project_id}/volumes/{volume_id}/metadata/{key} evs:volumes:delete
String> 创建云硬盘的时候,给云硬盘绑定标签。 单个云硬盘最多可以创建10个标签。 标签的key需要唯一。重复的key会做去重操作,即如果有重复的key,最终只保留一个作为有效的标签。 标签的key:String类型,最大长度36个字符。 由英文字母、数字、下划线、中划线、UNICO
environment ak := os.Getenv("CLOUD_SDK_AK") sk := os.Getenv("CLOUD_SDK_SK") auth := basic.NewCredentialsBuilder(). WithAk(ak).