You need to enable JavaScript to run this app.
文档中心
弹性伸缩

弹性伸缩

复制全文
下载 pdf
事件通知
CreateNotificationConfiguration - 创建事件通知配置
复制全文
下载 pdf
CreateNotificationConfiguration - 创建事件通知配置
创建伸缩组事件通知,关于管理事件通知。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:CreateNotificationConfiguration​
要执行的操作,取值:CreateNotificationConfiguration。​
​
Version string 必选 示例值:2020-01-01​
API的版本,取值:2020-01-01。​
​
NotificationType string 必选 示例值:cloudmonitor​
事件通知方式,当前仅支持云监控通知。​
  • 取值:cloudmonitor。​
​
EventTypes.N string[] 必选 示例值:ScaleOutSuccess​
事件通知类型。​
  • 参数 - N:表示事件通知类型的序号,取值1 ~ 10。​
  • 多个事件通知类型之间用&分隔。​
  • 取值:​
  • ScaleOutSuccess:成功的弹性扩张活动。​
  • ScaleInSuccess:成功的弹性收缩活动。​
  • ScaleOutError:失败的弹性扩张活动。​
  • ScaleInError:失败的弹性收缩活动。​
  • ScaleOutWarn:部分成功的弹性扩张活动。​
  • ScaleInWarn:部分成功的弹性收缩活动。​
  • ScaleReject:拒绝弹性伸缩活动。​
  • ScaleOutStart:弹性伸缩组扩容伸缩活动开始。​
  • ScaleInStart :弹性伸缩组缩容伸缩活动开始。​
  • ScheduleTaskExpiring: 周期规则到期提醒。​
​
ScalingGroupId string 必选 示例值:scg-ybmssdnnhn5pkgyd****​
您可以调用DescribeScalingGroups查询伸缩组ID。​
​
​
​
返回参数​
本接口无特有的返回参数。更多信息请见返回结构。​
请求示例​
​
GET /?Action=CreateNotificationConfiguration&EventTypes.1=ScaleOutSuccess&NotificationType=cloudmonitor&ScalingGroupId=scg-ybmssdnnhn5pkgyd****&Version=2020-01-01 HTTP/1.1​
Host: auto-scaling.cn-beijing.volcengineapi.com​
X-Date: 20240507T094917Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240507/cn-beijing/auto_scaling/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2024050717492606204102720042F967",​
"Version": "2020-01-01",​
"Service": "auto_scaling",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidScalingGroup.InvalidStatus​
The specified ScalingGroup is not in the correct status.​
指定的伸缩组当前状态不支持该操作。​
400​
MissingParameter.ScalingGroupId​
The required parameter ScalingGroupId is not supplied.​
伸缩组ID不能为空。​
400​
MissingParameter.EventTypes​
The required parameter EventTypes is not supplied.​
伸缩组事件类型不能为空。​
400​
InvalidEventType.Malformed​
The specified EventType [%s] is malformed.​
指定的伸缩组事件类型不合法。​
400​
InvalidNotificationType.Malformed​
The specified NotificationType is malformed.​
指定的通知类型不合法。​
404​
InvalidScalingGroupId.NotFound​
The specified ScalingGroup [%s] does not exist.​
指定的伸缩组不存在。​
409​
InvalidNotificationConfiguration.Conflict​
The NotificationConfiguration of the specified ScalingGroup already existed.​
指定的伸缩组通知配置已存在。​
500​
InternalError​
An internal error has occurred.​
内部错误,请重试。如果多次尝试失败,请提交工单。​
​
​
最近更新时间:2025.09.26 11:25:21
这个页面对您有帮助吗?
有用
有用
无用
无用