huawei-cloud-api-definitions-CBR 0.1.20251031

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"BulkCreateAndDeleteVaultTagsReq":{"description":"","properties":{"action":{"description":"操作标识:仅限于create(创建)、delete(删除)","enum":["create","delete"],"type":"string","x-huawei-extraAnnotation":""},"sys_tags":{"description":"系统标签列表。\n\nop_service权限可以访问,和tags二选一。\n\n目前TMS调用时只包含一个resource_tag结构体 ,key固定为:_sys_enterprise_project_id。\n\nvalue是UUID或0,value为0表示默认企业项目。\n\n现在仅支持create操作。","items":{"$ref":"#/definitions/SysTag","description":""},"type":"array","x-huawei-extraAnnotation":""},"tags":{"description":"标签列表。\n\ntags不允许为空列表。\n\ntags中最多包含10个key。\n\ntags中key不允许重复。","items":{"$ref":"#/definitions/Tag","description":""},"type":"array","x-huawei-extraAnnotation":""}},"required":["action"]},"ErrorResponse":{"description":"","properties":{"error_code":{"description":"请参见[错误码](ErrorCode.xml)。","type":"string","x-huawei-extraAnnotation":""},"error_msg":{"description":"错误信息","type":"string"}},"required":["error_code","error_msg"]},"SysTag":{"description":"","properties":{"key":{"description":"键。 \n系统标签的key,从白名单中取,不能随意定义。\n目前仅支持 _sys_enterprise_project_id字段,对应 的value为企业项目ID。","type":"string"},"value":{"description":"值。 \n目前仅会用到企业项目ID,其中默认的企业项目ID为“0”。","type":"string"}},"required":["key","value"]},"Tag":{"description":"","properties":{"key":{"description":"键。\nkey最大长度为36个字符。\nkey不能为空字符串。\nkey前后空格会被丢弃。\nkey不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。\nkey只能由中文,字母,数字,“-”,“_”组成。","type":"string","x-huawei-extraAnnotation":"","x-obc":"Y","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc"},"value":{"description":"值。\n\n添加标签时value值必选,删除标签时value值可选。\n\nvalue最大长度为43个字符。\n\nvalue可以为空字符串。\n\nvalue前后的空格会被丢弃。\n\nvalue不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。\nvalue只能由中文,字母,数字,“-”,“_”,“.”组成。","type":"string","x-huawei-extraAnnotation":"","x-obc":"Y","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc"}},"required":["key","value"]}},"description":null,"group_id":"11b1e4b30d524dacb6891902e04115dd","host":"cbr.cn-north-4.myhuaweicloud.com","id":"e669fc07f3d34743bf7d4e187cdda1a4","info_version":"v1","method":"post","name":"BatchCreateAndDeleteVaultTags","parameters":{},"paths":{"/v3/{project_id}/vault/{vault_id}/tags/action":{"post":{"consumes":[],"deprecated":false,"description":"为指定实例批量添加或删除标签\n标签管理服务需要使用该接口批量管理实例的标签。\n一个资源上最多有10个标签。\n此接口为幂等接口:\n    创建时如果请求体中存在重复key则报错。\n    创建时,不允许重复key,如果数据库存在就覆盖。\n    删除时,允许重复key。\n    删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。key长度127个字符,value为255个字符。删除时tags结构体不能缺失,key不能为空,或者空字符串。","operationId":"BatchCreateAndDeleteVaultTags","parameters":[{"description":"项目id","in":"path","name":"project_id","required":true,"type":"string","x-order":1},{"description":"资源id","in":"path","name":"vault_id","required":true,"type":"string","x-order":2},{"description":"批量添加删除存储库资源标签请求body","in":"body","name":"BatchCreateAndDeleteVaultTagsRequestBody","required":false,"schema":{"$ref":"#/definitions/BulkCreateAndDeleteVaultTagsReq"},"x-order":3}],"produces":[],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"批量添加删除存储库资源标签","tags":["标签"],"x-apiexplorer-hide":"false","x-constraint":"","x-first-open-time":"","x-hybridcloud":"","x-is-registered":"Y","x-name":"批量添加删除存储库资源标签","x-open-region-cloud":"obc,hc,hk","x-order":62,"x-publishpath":"","x-request-examples-1":{"action":"create","tags":[{"key":"string","value":"string"},{"key":"string1","value":"string2"}]},"x-request-examples-description-1":"批量创建tag","x-request-examples-text-1":"{\n  \"tags\": [\n    {\n      \"key\": \"string\",\n      \"value\": \"string\"\n    },{\n      \"key\": \"string1\",\n      \"value\": \"string2\"\n    }\n  ],\n  \"action\": \"create\"\n}","x-request-examples-url-1":"POST  https://{endpoint}/v3/{project_id}/vault/{vault_id}/tags/action","x-scope":"Commercial","x-source":"","x-support-sdk":"Y"}}},"product_short":"CBR","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"批量添加删除存储库资源标签","tags":"标签","uri":null,"version":"2.0"}