huawei-cloud-api-definitions-NAT 0.1.20250307

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json\"]","definitions":{"CreateResourceTagRequestBody":{"description":"添加资源标签的请求体。","properties":{"tag":{"$ref":"#/definitions/Tag","description":"标签。","x-huawei-extraAnnotation":""}},"required":["tag"]},"Tag":{"description":"","properties":{"key":{"description":"键。最大长度128个unicode字符。key不能为空。","maxLength":128,"minLength":1,"type":"string"},"value":{"description":"值。每个值最大长度255个unicode字符。","maxLength":255,"minLength":0,"type":"string"}},"required":["key","value"],"x-huawei-extraAnnotation":""}},"description":null,"group_id":"69ed306c85e24c1eb4496ff482cbca90","host":"nat.cn-north-4.myhuaweicloud.com","id":"64162d6273a9490da94d2d00156bde1e","info_version":"v2","method":"post","name":"CreateTransitIpTag","parameters":{},"paths":{"/v3/{project_id}/transit-ips/{resource_id}/tags":{"post":{"consumes":[],"deprecated":false,"description":"- 一个中转IP上最多有10个标签。\n- 此接口为幂等接口:\n- 创建时,如果创建的标签已经存在(key相同),则覆盖。","operationId":"CreateTransitIpTag","parameters":[{"description":"项目的ID。","in":"path","maxLength":32,"minLength":1,"name":"project_id","required":true,"type":"string","x-order":1},{"description":"中转IP的ID。","in":"path","maxLength":36,"minLength":36,"name":"resource_id","required":true,"type":"string","x-order":3},{"description":"用户Token。\n用户Token也就是调用获取用户Token获取请求认证接口的响应值,该接口是唯一不需要认证的接口。\n请求响应成功后在响应消息头中包含的“X-Subject-Token”的值即为Token值。","in":"header","maxLength":10240,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-order":4},{"description":"添加中转IP标签的请求体。","in":"body","name":"CreateTransitIpTagRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateResourceTagRequestBody"}}],"produces":[],"responses":{"204":{"description":"添加操作成功。"}},"summary":"添加中转IP标签","tags":["中转IP标签管理"],"x-apiErrorCodes":[{"errorCode":"400","errorDescription":"Bad Request","errorDescriptionEn":"Bad Request","errorMessage":"","httpStatus":"400","solution":"","solutionEn":""},{"errorCode":"401","errorDescription":"Unauthorized","errorDescriptionEn":"Unauthorized","errorMessage":"","httpStatus":"401","solution":"","solutionEn":""},{"errorCode":"403","errorDescription":"Forbidden","errorDescriptionEn":"Forbidden","errorMessage":"","httpStatus":"403","solution":"","solutionEn":""},{"errorCode":"404","errorDescription":"Not Found","errorDescriptionEn":"Not Found","errorMessage":"","httpStatus":"404","solution":"","solutionEn":""},{"errorCode":"500","errorDescription":"Internal Server Error","errorDescriptionEn":"Internal Server Error","errorMessage":"","httpStatus":"500","solution":"","solutionEn":""}],"x-apiexplorer-hide":"","x-constraint":"","x-first-open-time":"","x-hybridcloud":"","x-is-registered":"Y","x-name":"添加中转IP标签","x-obc":"Y","x-open-region-cloud":"hc,hk","x-order":4,"x-publishpath":"","x-request-examples-1":{"tag":{"key":"key1","value":"value1"}},"x-request-examples-description-1":"","x-request-examples-text-1":"{\n\t\t\"tag\":\n\t\t {\n\t\t\t\t\"key\": \"key1\",\t\t\t\t\"value\": \"value1\"\n}\n}\n","x-request-examples-url-1":"POST  https://{Endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/transit-ips/56121618-fb0a-4a51-aff0-e2eb9cba4c73/tags","x-scope":"Commercial","x-source":"","x-support-sdk":"Y","x-version":"v3"}}},"product_short":"NAT","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"添加中转IP标签","tags":"中转IP标签管理","uri":null,"version":"2.0"}