设置云数据库 Tair(兼容 Redis)实例白名单中的安全组。
接口说明
调用本接口会覆盖实例白名单中原有的安全组,并将 SecurityGroupId 参数中指定的安全组加入至白名单。该 API 对应的控制台操作请参见添加安全组。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
kvstore:ModifySecurityGroupConfiguration |
update |
*DBInstance
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DBInstanceId |
string |
是 |
实例 ID。 |
r-bp1zxszhcgatnx**** |
| SecurityGroupId |
string |
是 |
待设置的安全组 ID。最多可传入 10 个,安全组 ID 之间用英文逗号(,)分隔。 说明
将覆盖原设置,取值参考查询您创建的安全组的基本信息 DescribeSecurityGroups 。 |
sg-bpcfmyiu4ekp**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
147CAC09-E8C6-43F8-9599-982A43D6**** |
示例
正常返回示例
JSON格式
{
"RequestId": "147CAC09-E8C6-43F8-9599-982A43D6****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | EngineNotSupported | Engine specified cannot be supported the operation. | |
| 400 | AssociatedEcsSecurityGroupIdQuotaExceed | SecurityGroupId参数超过能使用的最大数量. | |
| 400 | MissingInstanceId | InstanceId is mandatory for this action. | |
| 400 | InvalidParam | Specified ecs security group id is not valid. | |
| 400 | InvalidIzNo.NotSupported | the Specified Zone not supported. | |
| 403 | AssociatedEcsSecurityGroupId.QuotaExceed | SecurityGroupIdQuotaExceeded exceeding the allowed amount of SecurityGroupId. | |
| 404 | MissingParameter | The input parameter “DBInstanceId” that is mandatory for processing this request is not supplied. | |
| 404 | InvalidInstanceId.NotFound | Specified instance does not exist. | |
| 404 | InvalidRegionZoneNotFound | Specified Region does not exist in RDS. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。