调用CreateMonitorGroup接口创建应用分组。
接口说明
本文将提供一个示例,创建应用分组ECS_Group。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cms:CreateMonitorGroup |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| GroupName |
string |
是 |
应用分组名称。 |
ECS_Group |
| ContactGroups |
string |
否 |
报警联系组。应用分组的报警通知会发送给该报警联系组中的报警联系人。 说明
报警联系组是一组报警联系人,可以包含一个或多个报警联系人。关于如何创建报警联系人和报警联系组,请参见 PutContact 和 PutContactGroup 。 |
ECS_Alert_Group |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
integer |
状态码。 说明
200 表示成功。 |
200 |
| Message |
string |
错误信息。 |
The specified resource is not found. |
| RequestId |
string |
请求 ID。 |
83C89BA6-ABD4-4398-A175-83E86C47A001 |
| GroupId |
integer |
应用分组 ID。 |
1234567 |
| Success |
boolean |
操作是否成功。取值:
|
true |
示例
正常返回示例
JSON格式
{
"Code": 200,
"Message": "The specified resource is not found.",
"RequestId": "83C89BA6-ABD4-4398-A175-83E86C47A001",
"GroupId": 1234567,
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidQueryParameter | %s | |
| 401 | AccessDeniedException | You donot have sufficient access to perform this action. | |
| 412 | ResourcesOverLimit | Resources over limit. | |
| 500 | %s | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 402 | LimitExceeded | The quota for this customer had been reached. | |
| 403 | InvalidClientTokenId | not allow this operation. | 没有权限 |
| 206 | %s | %s | |
| 404 | ResourceNotFound | The specified resource is not found. | 未找到指定资源。 |
| 503 | %s | %s | |
| 406 | %s | %s | |
| 429 | Throttli∂ngException | The request was denied due to request throttling. | |
| 409 | %s | %s | |
| 409 | ResourceConflict | Concurrent modification of resources. | |
| 409 | ResourceExist | Resources already exist. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。