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":{"IntervalAlarmActionsV2":{"description":"操作告警区间","properties":{"limits":{"description":"操作限制。当scaling_resource_type为BANDWIDTH,且operation不为SET时,limits参数生效,单位为Mbit/s。此时,当operation为ADD时,limits表示带宽可调整的上限;当operation为REDUCE时,limits表示带宽可调整的下限。","format":"int32","type":"integer"},"lower_bound":{"format":"double","type":"number"},"operation":{"description":"操作选项,默认为ADD。\n当scaling_resource_type为SCALING_GROUP,支持如下操作:\nADD:增加\nREMOVE/REDUCE:减少\nSET:设置为\n当scaling_resource_type为BANDWIDTH,支持如下操作:\nADD:增加\nREDUCE:减少","type":"string"},"percentage":{"description":"操作百分比,取值为0到20000的整数。当scaling_resource_type为SCALING_GROUP时,size和instance_percentage参数均无配置,则size默认为1。当scaling_resource_type为BANDWIDTH时,不支持配置instance_percentage参数。","format":"int32","type":"integer"},"size":{"description":"操作大小,取值范围为0到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size为实例个数,取值范围为0-300的整数,默认为1。当scaling_resource_type为BANDWIDTH时,size表示带宽大小,单位为Mbit/s,取值范围为1到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size和percentage参数只能选其中一个进行配置。","format":"int32","type":"integer"},"upper_bound":{"format":"double","type":"number"}},"type":"object"},"ScalingPolicyActionV2":{"description":"策略执行具体动作。","properties":{"limits":{"description":"操作限制。当scaling_resource_type为BANDWIDTH,且operation不为SET时,limits参数生效,单位为Mbit/s。此时,当operation为ADD时,limits表示带宽可调整的上限;当operation为REDUCE时,limits表示带宽可调整的下限。","example":10,"format":"int32","type":"integer"},"operation":{"description":"操作选项,默认为ADD。\n当scaling_resource_type为SCALING_GROUP,支持如下操作:\n- ADD:增加\n- REMOVE/REDUCE:减少\n- SET:设置为\n当scaling_resource_type为BANDWIDTH,支持如下操作:\n- ADD:增加\n- REDUCE:减少\n- SET:设置为","enum":["ADD","REMOVE","REDUCE","SET"],"example":"ADD","type":"string"},"percentage":{"description":"操作百分比,取值为0到20000的整数。当scaling_resource_type为SCALING_GROUP时,size和instance_percentage参数均无配置,则size默认为1。当scaling_resource_type为BANDWIDTH时,不支持配置instance_percentage参数。","maximum":20000,"minimum":0,"type":"integer"},"size":{"description":"操作大小,取值范围为0到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size为实例个数,取值范围为0-300的整数,默认为1。当scaling_resource_type为BANDWIDTH时,size表示带宽大小,单位为Mbit/s,取值范围为1到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size和percentage参数只能选其中一个进行配置。","example":1,"maximum":300,"minimum":0,"type":"integer"}}},"ScalingPolicyV2MetaData":{"description":"附件信息","properties":{"metadata_bandwidth_share_type":{"description":"伸缩带宽策略中带宽对应的共享类型","type":"string"},"metadata_eip_address":{"description":"伸缩带宽策略中带宽对应的EIP地址","type":"string"},"metadata_eip_id":{"description":"伸缩带宽策略中带宽对应的EIP的ID","type":"string"}}},"ScalingV2Policy":{"description":"请求正常","properties":{"scaling_policy":{"$ref":"#/definitions/ScalingV2PolicyDetail","description":"伸缩策略详情"}}},"ScalingV2PolicyDetail":{"description":"伸缩策略详情","properties":{"alarm_id":{"description":"告警ID。","type":"string"},"cool_down_time":{"description":"冷却时间,取值范围0-86400,默认为300,单位是秒。","maximum":86400,"type":"integer"},"create_time":{"description":"创建伸缩策略时间,遵循UTC时间","format":"date-time","type":"string"},"description":{"description":"伸缩策略描述(1-256个字符)","type":"string"},"interval_alarm_actions":{"items":{"$ref":"#/definitions/IntervalAlarmActionsV2"},"type":"array"},"meta_data":{"$ref":"#/definitions/ScalingPolicyV2MetaData"},"policy_status":{"description":"伸缩策略状态。INSERVICE:使用中。PAUSED:停止。EXECUTING:执行中。","enum":["INSERVICE","PAUSED","EXECUTING"],"type":"string"},"scaling_policy_action":{"$ref":"#/definitions/ScalingPolicyActionV2"},"scaling_policy_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"},"scaling_policy_name":{"description":"伸缩策略名称。","maxLength":64,"minLength":1,"type":"string"},"scaling_policy_type":{"description":"伸缩策略类型:ALARM:告警策略,此时alarm_id有返回,scheduled_policy不会返回。SCHEDULED:定时策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time不会返回。RECURRENCE:周期策略,此时alarm_id不会返回,scheduled_policy有返回,并且recurrence_type、recurrence_value、start_time和end_time有返回。","enum":["ALARM","SCHEDULED","RECURRENCE","INTERVAL_ALARM"],"type":"string"},"scaling_resource_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"},"scaling_resource_type":{"description":"伸缩资源类型。伸缩组:SCALING_GROUP。带宽:BANDWIDTH。","enum":["SCALING_GROUP","BANDWIDTH"],"type":"string"},"scheduled_policy":{"$ref":"#/definitions/ScheduledPolicy"}}},"ScheduledPolicy":{"description":"定时、周期任务策略","properties":{"end_time":{"description":"周期策略重复执行结束时间,遵循UTC时间,scaling_policy_type为RECURRENCE时该项必选。当为周期类型策略时,不得早于当前时间和开始时间。格式为:YYYY-MM-DDThh:mmZ","type":"string"},"launch_time":{"description":"触发时间,遵循UTC时间。如果scaling_policy_type为SCHEDULED,则格式为:YYYY-MM-DDThh:mmZ。如果scaling_policy_type为RECURRENCE,则格式为:hh:mm。","type":"string"},"recurrence_type":{"description":"周期触发类型,scaling_policy_type为RECURRENCE时该项必选。Daily:每天执行一次。Weekly:每周指定天执行一次。Monthly:每月指定天执行一次。","enum":["Daily","Weekly","Monthly"],"type":"string"},"recurrence_value":{"description":"周期触发任务数值,scaling_policy_type为RECURRENCE时该项必选。类型为Daily时,该字段为null,表示每天执行类型为Weekly时,该字段取值范围为1-7,1表示星期日,以此类推,以”,”分割,例如:1,3,5。类型为Monthly时,该字段取值范围为1-31,分别表示每月的日期,以“,”分割,例如:1,10,13,28。说明:- 当recurrence_type类型为Daily时,recurrence_value参数不生效。","maxLength":64,"minLength":1,"type":"string"},"start_time":{"description":"周期策略重复执行开始时间,遵循UTC时间。默认为当前时间,格式为:YYYY-MM-DDThh:mZ","type":"string"}},"required":["launch_time"]}},"description":null,"group_id":"c14e7adea4354f78bb333ea8451df077","host":"as.cn-north-4.myhuaweicloud.com","id":"0cba385bc19445198cb525325227e7c9","info_version":"v1","method":"get","name":"ShowScalingV2Policy","parameters":{},"paths":{"/autoscaling-api/v2/{project_id}/scaling_policy/{scaling_policy_id}":{"get":{"description":"查询指定弹性伸缩策略信息。","operationId":"ShowScalingV2Policy","parameters":[{"description":"租户标识。","in":"path","name":"project_id","required":true,"type":"string","x-example":"0513757xxxxxd5eb2f08xxxb93ef4f0f","x-order":1},{"description":"Token认证。","in":"header","name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX...","x-order":2},{"description":"伸缩组ID。","in":"path","name":"scaling_policy_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}],"responses":{"200":{"description":"请求正常。","examples":{"application/json":{"scaling_policy":{"alarm_id":"al1513822380493GvlJKZwA8","cool_down_time":900,"create_time":"2018-03-21T08:03:35Z","meta_data":{"metadata_eip_address":"255.255.255.255","metadata_eip_id":"263f0886-de6a-4e21-ad83-814ca9f3844e"},"policy_status":"INSERVICE","scaling_policy_action":{"limits":111,"operation":"ADD","size":1},"scaling_policy_id":"906f73ff-56e8-41b2-a005-8157d0c60361","scaling_policy_name":"hth_aspolicy_1","scaling_policy_type":"ALARM","scaling_resource_id":"8ade64b5-d685-40b8-8582-4ce306ea37a6","scaling_resource_type":"BANDWIDTH"}}},"schema":{"$ref":"#/definitions/ScalingV2Policy"}},"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":"查询指定弹性伸缩策略详情(V2版本)","tags":["弹性伸缩策略管理V2"],"x-apiErrorCodes":"","x-apigateway-auth-type":"","x-apigateway-match-mode":"","x-apigateway-request-type":"","x-call_frequency":"","x-constraint":"","x-ctc":"Y","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":"520","x-name":"查询弹性伸缩策略详情(V2版本)","x-obc":"N","x-order":9,"x-otc":"Y","x-request-examples-description-1":"本示例展示了查询ID为906f73ff-56e8-41b2-a005-8157d0c60361的伸缩策略的详情信息。","x-request-examples-url-1":"GET https://{Endpoint}/autoscaling-api/v2/{project_id}/scaling_policy/906f73ff-56e8-41b2-a005-8157d0c60361","x-scope":"Commercial","x-source":"SelfDeveloped","x-source_url":"","x-support-sdk":"Y","x-tenant_flow_time":"1","x-tenant_flow_value":"52","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":"查询指定弹性伸缩策略详情(V2版本)","tags":"弹性伸缩策略管理V2","uri":null,"version":"2.0"}