更改MongoDB实例已绑定的ECS安全组。
接口说明
说明
如果是分片集群实例,绑定的 ECS 安全组仅对 Mongos 节点生效。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
dds:ModifySecurityGroupConfiguration |
update |
*dbinstance
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
DBInstanceId |
string |
是 |
实例 ID。 |
dds-bpxxxxxxxx |
SecurityGroupId |
string |
是 |
ECS 安全组 ID。 说明
|
sg-bpxxxxxxxx |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
RequestId |
string |
请求 ID。 |
E062C482-1A4B-469E-938C-96D28CFAE42E |
示例
正常返回示例
JSON
格式
{
"RequestId": "E062C482-1A4B-469E-938C-96D28CFAE42E"
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | MissingInstanceId | InstanceId is mandatory for this action. | |
400 | InstanceStatusInvalid | Instance status is not valid. | |
400 | InvalidParam | Specified ecs security group id is not valid. | |
400 | InvalidIzNo.NotSupported | the Specified Zone not supported. | |
400 | InvalidRegion_Zone_NotFound | Specified Region does not exist in RDS. | |
400 | InvalidVpc.NotSupported | the Different vpc not supported. | 不同的 VPC 不支持。 |
403 | AssociatedEcsSecurityGroupId.QuotaExceed | SecurityGroupIdQuotaExceeded exceeding the allowed amount of SecurityGroupId. | |
404 | InvalidInstanceId.NotFound | Specified instance does not exist. | |
404 | InvalidRegionZoneNotFound | Specified Region does not exist in RDS. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?