huawei-cloud-api-definitions-AS 0.1.20260109

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"CreateTagsOption":{"description":"标签列表","properties":{"action":{"description":"操作标识(区分大小写):delete:删除。create:创建。若已经存在相同的key值则会覆盖对应的value值。","enum":["create"],"type":"string"},"tags":{"description":"标签列表。action为delete时,tags结构体不能缺失,key不能为空,或者空字符串。","items":{"$ref":"#/definitions/TagsSingleValue"},"type":"array"}},"required":["action","tags"]},"TagsSingleValue":{"description":"资源标签键","properties":{"key":{"description":"资源标签键。最大长度36个unicode字符。key不能为空。(搜索时不对此参数做校验)。最多为10个,不能为空或者空字符串。且不能重复。","type":"string"},"value":{"description":"资源标签值列表,每个值最大长度43个unicode字符,每个key下最多为10个,同一个key中values不能重复。\n\n“*”为系统保留字符,如果value是以“*”开头表示按照“*”后面的值全模糊匹配。不能只传入“*”。\n如果values为空列表但不可缺省,则表示any_value(查询任意value)。value之间为或的关系。","type":"string"}},"required":["key"],"type":"object"}},"description":null,"group_id":"c14e7adea4354f78bb333ea8451df077","host":"as.cn-north-4.myhuaweicloud.com","id":"0c381d1b3bde41c0a6ef081e89288fd8","info_version":"v1","method":"post","name":"CreateScalingTagInfo","parameters":{},"paths":{"/autoscaling-api/v1/{project_id}/{resource_type}/{resource_id}/tags/action":{"post":{"description":"创建或删除指定资源的标签。每个伸缩组最多添加10个标签。","operationId":"CreateScalingTagInfo","parameters":[{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-order":1},{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-order":2},{"description":"资源类型,枚举类:scaling_group_tag。scaling_group_tag表示资源类型为伸缩组。","enum":["scaling_group_tag"],"in":"path","name":"resource_type","required":true,"type":"string","x-order":3},{"description":"资源ID。","in":"path","name":"resource_id","required":true,"type":"string","x-order":4},{"description":"BodyParameters","in":"body","name":"bodyparam","required":true,"schema":{"$ref":"#/definitions/CreateTagsOption"}}],"responses":{"204":{"description":"请求正常"},"400":{"description":"Bad Request 服务器未能处理请求。"},"401":{"description":"Unauthorized 被请求的页面需要用户名和密码。"},"403":{"description":"Forbidden 对被请求的页面访问禁止。"},"404":{"description":"Not Found 服务器无法找到被请求的页面。"},"405":{"description":"Method Not Allowed 请求中指定的方法不被允许。"},"406":{"description":"Not Acceptable 服务器生成的响应无法被客户端所接受。"},"407":{"description":"Proxy Authentication 用户必须首先使用代理服务器进行验证,这样请求才会被处理"},"408":{"description":"Request Timeout 请求超出了服务器的等待时间。"},"409":{"description":"Conflict 由于冲突,请求无法被完成。"},"500":{"description":"Internal Server Error 请求未完成。服务异常。"},"501":{"description":"Not Implemented 请求未完成。服务器不支持所请求的功能。"},"502":{"description":"Bad Gateway 请求未完成。服务器从上游服务器收到一个无效的响应。"},"503":{"description":"Service Unavailable 请求未完成。系统暂时异常。"},"504":{"description":"Gateway Timeout 网关超时。"}},"summary":"创建标签","tags":["标签管理"],"x-apiErrorCodes":"","x-apigateway-auth-type":"","x-apigateway-match-mode":"","x-apigateway-request-type":"","x-call_frequency":"","x-constraint":"","x-ctc":"N","x-first_open_time":"2018-09-30","x-flow_control_group":"as","x-hc":"Y","x-hk":"Y","x-hybridcloud":true,"x-iftype":"公开接口","x-in_cli":"","x-is-registered":"Y","x-is_calling":"Y","x-multi_tenant_flow_time":"1","x-multi_tenant_flow_value":"780","x-name":"创建或删除标签","x-obc":"N","x-order":3,"x-otc":"Y","x-request-examples-1":{"action":"create","tags":[{"key":"ENV15","value":"ENV15"},{"key":"ENV151","value":"ENV151"}]},"x-request-examples-description-1":"本示例展示了在ID为e5d27f5c-dd76-4a61-b4bc-a67c5686719a的伸缩组下创建key=ENV15,value=ENV15和key=ENV151,value=ENV151的资源标签","x-request-examples-text-1":{"action":"create","tags":[{"key":"ENV15","value":"ENV15"},{"key":"ENV151","value":"ENV151"}]},"x-request-examples-url-1":"POST https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_group_tag/e5d27f5c-dd76-4a61-b4bc-a67c5686719a/tags/action","x-scope":"Commercial","x-source":"SelfDeveloped","x-source_url":"","x-support-sdk":"Y","x-tenant_flow_time":"1","x-tenant_flow_value":"78","x-timeout":"10s","x-tlf":"N","x-un_cli":"","x-version":"v1"}}},"product_short":"AS","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建标签","tags":"标签管理","uri":null,"version":"2.0"}