调用CreateMonitorGroupInstances接口添加指定资源到指定应用分组。
接口说明
一个应用分组中,一个云服务最多添加 3000 个资源,单次最多添加 1000 个资源,应用分组中的总资源数无限制。
本文将提供一个示例,将地域cn-hangzhou
的云服务器 ECS 的实例(实例 ID 为i-2ze26xj5wwy12****
,实例名称为test-instance-ecs
)添加到应用分组3607****
。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
GroupId | string | 是 | 应用分组 ID。 | 3607**** |
Instances | array<object> | 是 | 实例列表。 | |
object | 是 | 无。 | ||
InstanceName | string | 是 | 实例名称。 | test-instance-ecs |
Category | string | 是 | 云服务名称缩写。 关于如何获取云服务名称缩写,请参见 DescribeProjectMeta 接口的返回参数 | ecs |
InstanceId | string | 是 | 实例 ID。 | i-2ze26xj5wwy12**** |
RegionId | string | 是 | 实例所在地域。 | cn-hangzhou |
关于公共请求参数的详情,请参见公共参数。
返回参数
示例
正常返回示例
JSON
格式
{
"Code": 200,
"Message": "The Request is not authorization.",
"RequestId": "1BC69FEB-56CD-4555-A0E2-02536A24A946",
"Success": true
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
206 | %s | %s | - |
400 | InvalidQueryParameter | %s | - |
401 | AccessDeniedException | You donot have sufficient access to perform this action. | - |
402 | LimitExceeded | The quota for this customer had been reached. | - |
403 | InvalidClientTokenId | not allow this operation. | 没有权限 |
404 | ResourceNotFound | %s | - |
409 | ResourceExist | %s | - |
412 | ResourcesOverLimit | %s | - |
429 | Throttli∂ngException | The request was denied due to request throttling. | - |
500 | InternalError | %s | - |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史