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":{"CallbackLifeCycleHookOption":{"description":"伸缩实例生命周期回调","properties":{"instance_id":{"description":"实例ID。指定生命周期回调对象,当不传入lifecycle_action_key字段时,该字段为必选。","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","type":"string"},"lifecycle_action_key":{"description":"生命周期操作令牌,通过查询伸缩实例挂起信息接口获取。指定生命周期回调对象,当不传入instance_id字段时,该字段为必选。当该字段与instance_id字段都传入,优先使用该字段进行回调。","example":"23880867-6288-4470-98a8-f8bda096b6c4","type":"string"},"lifecycle_action_result":{"description":"生命周期回调操作。ABANDON:终止。CONTINUE:继续。EXTEND:延长超时时间,每次延长1小时。","enum":["ABANDON","CONTINUE","EXTEND"],"type":"string"},"lifecycle_hook_name":{"description":"生命周期挂钩名称。指定生命周期回调对象,当不传入lifecycle_action_key字段时,该字段为必选。","maxLength":64,"minLength":1,"type":"string"}},"required":["lifecycle_action_result"]}},"description":null,"group_id":"c14e7adea4354f78bb333ea8451df077","host":"as.cn-north-4.myhuaweicloud.com","id":"ed3d2ac9834a4544b0ffb9f16dbff963","info_version":"v1","method":"put","name":"AttachCallbackInstanceLifeCycleHook","parameters":{},"paths":{"/autoscaling-api/v1/{project_id}/scaling_instance_hook/{scaling_group_id}/callback":{"put":{"description":"通过生命周期操作令牌或者通过实例ID和生命周期挂钩名称对伸缩实例指定的挂钩进行回调操作。如果在超时时间结束前已完成自定义操作,选择终止或继续完成生命周期操作。如果需要更多时间完成自定义操作,选择延长超时时间,实例保持等待状态的时间将增加1小时。只有实例的生命周期挂钩状态为 HANGING 时才可以进行回调操作。","operationId":"AttachCallbackInstanceLifeCycleHook","parameters":[{"description":"项目ID。","in":"path","name":"project_id","required":true,"type":"string","x-example":"0513757xxxxxd5eb2f08xxxb93ef4f0f","x-order":1},{"description":"用户Token。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX...","x-order":2},{"description":"伸缩组标识。","in":"path","name":"scaling_group_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":"66e0f775-c4ac-xxxx-xxxx-f93ba217aa5f","x-order":3},{"description":"Bodyparameters","in":"body","name":"bodyparam","required":true,"schema":{"$ref":"#/definitions/CallbackLifeCycleHookOption"}}],"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":5,"x-otc":"Y","x-request-examples-1":{"lifecycle_action_key":"23880867-6288-4470-98a8-f8bda096b6c4","lifecycle_action_result":"ABANDON"},"x-request-examples-description-1":"本示例展示了在ID为e5d27f5c-dd76-4a61-b4bc-a67c5686719a的伸缩组内通过生命周期操作令牌23880867-6288-4470-98a8-f8bda096b6c4进行ABANDON的回调操作。","x-request-examples-text-1":{"lifecycle_action_key":"23880867-6288-4470-98a8-f8bda096b6c4","lifecycle_action_result":"ABANDON"},"x-request-examples-url-1":"PUT https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_instance_hook/e5d27f5c-dd76-4a61-b4bc-a67c5686719a/callback","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"}