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":{"InstanceHangingInfos":{"description":"挂钩实例信息","properties":{"default_result":{"description":"生命周期挂钩默认回调操作。","type":"string"},"instance_id":{"description":"伸缩实例ID。","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":"生命周期操作令牌,用于指定生命周期回调对象。","type":"string"},"lifecycle_hook_name":{"description":"生命周期挂钩名称。","maxLength":64,"minLength":1,"type":"string"},"lifecycle_hook_status":{"description":"伸缩实例挂钩的挂起状态。HANGING:挂起。CONTINUE:继续。ABANDON:终止。","enum":["HANGING","CONTINUE","ABANDON"],"type":"string"},"scaling_group_id":{"description":"伸缩组ID。","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","type":"string"},"timeout":{"description":"超时时间,遵循UTC时间,格式为:YYYY-MM-DDThh:mm:ssZZ。","type":"string"}}},"InstanceListResult":{"description":"伸缩实例生命周期挂钩列表。","properties":{"instance_hanging_info":{"description":"伸缩实例生命周期挂钩列表。","items":{"$ref":"#/definitions/InstanceHangingInfos"},"type":"array"}}}},"description":null,"group_id":"c14e7adea4354f78bb333ea8451df077","host":"as.cn-north-4.myhuaweicloud.com","id":"2efdff9068e4416ea79254ce421b2bfc","info_version":"v1","method":"get","name":"ListHookInstances","parameters":{},"paths":{"/autoscaling-api/v1/{project_id}/scaling_instance_hook/{scaling_group_id}/list":{"get":{"description":"添加生命周期挂钩后,当伸缩组进行伸缩活动时,实例将被挂钩挂起并置于等待状态,根据输入条件过滤查询弹性伸缩组中伸缩实例的挂起信息。可根据实例ID进行条件过滤查询。若不加过滤条件默认查询指定伸缩组内所有实例挂起信息。","operationId":"ListHookInstances","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":1},{"description":"伸缩组ID。","in":"path","name":"scaling_group_id","required":true,"type":"string","x-example":"66e0f775-c4ac-xxxx-xxxx-f93ba217aa5f","x-order":2},{"description":"伸缩实例ID。","in":"query","name":"instance_id","pattern":"[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}","required":false,"type":"string","x-example":"66e0f775-c4ac-xxxx-xxxx-f93ba217aa5f","x-order":1}],"responses":{"200":{"description":"请求正常","examples":{"application/json":{"instance_hanging_info":[{"default_result":"ABANDON","instance_id":"b25c1589-c96c-465b-9fef-d06540d1945c","lifecycle_action_key":"6ebe6e72-4b09-4adb-ae4a-a91dc0560069","lifecycle_hook_name":"hook-test","lifecycle_hook_status":"HANGING","scaling_group_id":"e5d27f5c-dd76-4a61-b4bc-a67c5686719a","timeout":"2016-11-15T06:43:41Z"}]}},"schema":{"$ref":"#/definitions/InstanceListResult"}},"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":6,"x-otc":"Y","x-request-examples-description-1":"本示例展示了在ID为e5d27f5c-dd76-4a61-b4bc-a67c5686719a的伸缩组内,查询ID为b25c1589-c96c-465b-9fef-d06540d1945c的实例的挂起信息。","x-request-examples-url-1":"GET https://{Endpoint}/autoscaling-api/v1/{project_id}/scaling_instance_hook/e5d27f5c-dd76-4a61-b4bc-a67c5686719a/list?instance_id=b25c1589-c96c-465b-9fef-d06540d1945c","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"}