huawei-cloud-api-definitions-VPC 0.1.20250523

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"BatchCreateVpcTagsRequestBody":{"description":"This is a auto create Body Object","properties":{"action":{"description":"功能说明:操作标识\n取值范围:create","enum":["create"],"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"},"tags":{"description":"功能说明:标签列表","items":{"$ref":"#/definitions/ResourceTag","description":""},"type":"array","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,obc"}},"required":["action","tags"]},"ErrorResp":{"description":"http响应码为错误码时的返回体数据模型","properties":{"code":{"description":"请求返回的错误码","type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,obc"},"message":{"description":"请求返回的错误信息","maxLength":999,"minLength":1,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,obc"}},"required":["code","message"]},"ResourceTag":{"description":"","properties":{"key":{"description":"功能说明:标签键\n约束:同一资源的key值不能重复。","maxLength":36,"minLength":0,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"},"value":{"description":"功能说明:标签值","maxLength":43,"minLength":0,"type":"string","x-admin":"False","x-internal":"False","x-open-region-cloud":"hc,hk,otc,tlf,ctc,hcso,sbc,obc"}},"required":["key","value"]}},"description":null,"group_id":"4784d190da9948c381c1603ddda2f4ff","host":"vpc.cn-north-4.myhuaweicloud.com","id":"1ff63d7e2fd04839905f9d80a4a5c6d1","info_version":"v2","method":"post","name":"BatchCreateVpcTags","parameters":{},"paths":{"/v2.0/{project_id}/vpcs/{vpc_id}/tags/action":{"post":{"consumes":[],"deprecated":false,"description":"为指定的VPC资源实例批量添加标签。\n此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。","operationId":"BatchCreateVpcTags","parameters":[{"description":"This is a auto create Body Object","in":"body","name":"BatchCreateVpcTagsRequestBody","required":true,"schema":{"$ref":"#/definitions/BatchCreateVpcTagsRequestBody"}},{"description":"用户Token。\n获取Token,请参考《统一身份认证服务API参考》的“获取用户Token”章节。请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-admin":"","x-internal":"","x-open-region-cloud":"hc,hk,otc,obc","x-order":1},{"description":"项目ID","in":"path","name":"project_id","pattern":"[0-9a-fA-F]{32}","required":true,"type":"string","x-example":"05137572fa00d5eb2fdcc014b0f5c751","x-order":2},{"description":"功能说明:虚拟私有云唯一标识\n取值范围:合法UUID\n约束:ID对应的VPC必须存在","in":"path","name":"vpc_id","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","required":true,"type":"string","x-example":"575c5798-bb62-4500-a8dc-174ef7d8685f","x-order":3}],"produces":[],"responses":{"204":{"description":"POST操作正常返回"},"400":{"description":"被请求的页面需要用户名和密码。","schema":{"$ref":"#/definitions/ErrorResp"}},"401":{"description":"对被请求页面的访问被禁止。","schema":{"$ref":"#/definitions/ErrorResp"}},"403":{"description":"服务器无法找到被请求的页面。","schema":{"$ref":"#/definitions/ErrorResp"}},"404":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/ErrorResp"}},"405":{"description":"服务器生成的响应无法被客户端所接受","schema":{"$ref":"#/definitions/ErrorResp"}},"409":{"description":"由于冲突,请求无法被完成。","schema":{"$ref":"#/definitions/ErrorResp"}},"500":{"description":"请求未完成,服务异常","schema":{"$ref":"#/definitions/ErrorResp"}}},"summary":"批量创建VPC资源标签","tags":["VPC资源标签管理"],"x-apiexplorer-hide":"false","x-constraint":"","x-first-open-time":"2018-3-30","x-hybridcloud":"false","x-is-registered":"Y","x-name":"批量创建VPC资源标签","x-open-region-cloud":"hc,hk,otc,obc","x-order":47,"x-publishpath":"","x-request-examples-1":{"action":"create","tags":[{"key":"key1","value":"value1"},{"key":"key2","value":"value3"}]},"x-request-examples-description-1":"","x-request-examples-text-1":"{\n\t\"action\": \"create\",\n\t\"tags\": [{\n\t\t\"key\": \"key1\",\n\t\t\"value\": \"value1\"\n\t},\n\t{\n\t\t\"key\": \"key2\",\n\t\t\"value\": \"value3\"\n\t}]\n}","x-request-examples-url-1":"POST https://{Endpoint}/v2.0/{project_id}/vpcs/{vpc_id}/tags/action","x-scope":"Commercial","x-source":"SelfDeveloped","x-support-sdk":"Y","x-version":"v2.0"}}},"product_short":"VPC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"批量创建VPC资源标签","tags":"VPC资源标签管理","uri":null,"version":"2.0"}