调用ModifyGlobalSecurityIPGroupRelation修改集群与全局IP白名单模板的关联关系。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyGlobalSecurityIPGroupRelation |
系统规定参数。取值:ModifyGlobalSecurityIPGroupRelation。 |
RegionId | String | 是 | cn-hangzhou |
地域ID。 |
DBClusterId | String | 是 | pc-***************** |
集群ID。 |
GlobalSecurityGroupId | String | 是 | g-zsldxfiwjmti0kcm**** |
IP白名单模板ID。 |
ResourceGroupId | String | 否 | rg-********** |
资源组ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
DBClusterId | String | pc-***************** |
集群ID。 |
RequestId | String | 9B7BFB11-C077-4FE3-B051-F69CEB****** |
请求ID。 |
GlobalSecurityIPGroupRel | Array of GlobalSecurityIPGroupRel |
全局IP白名单模板信息。 |
|
GlobalSecurityGroupId | String | g-zsldxfiwjmti0kcm**** |
IP白名单模板ID。 |
GIpList | String | 192.168.0.1 |
白名单模板内的IP地址。 说明 多个IP地址需要用英文逗号隔开,所有IP白名单累积支持添加1000个IP地址或地址段。
|
RegionId | String | cn-hangzhou |
地域ID。 |
GlobalIgName | String | test_123 |
IP白名单模板名称。IP白名单模板名称需满足如下要求:
|
示例
请求示例
http(s)://polardb.aliyuncs.com/?Action=ModifyGlobalSecurityIPGroupRelation
&RegionId=cn-hangzhou
&DBClusterId=pc-*****************
&GlobalSecurityGroupId=g-zsldxfiwjmti0kcm****
&ResourceGroupId=rg-**********
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyGlobalSecurityIPGroupRelationResponse>
<DBClusterId>pc-*****************</DBClusterId>
<RequestId>9B7BFB11-C077-4FE3-B051-F69CEB******</RequestId>
<GlobalSecurityIPGroupRel>
<GlobalSecurityGroupId>g-zsldxfiwjmti0kcm****</GlobalSecurityGroupId>
<GIpList>192.168.0.1</GIpList>
<RegionId>cn-hangzhou</RegionId>
<GlobalIgName>test_123</GlobalIgName>
</GlobalSecurityIPGroupRel>
</ModifyGlobalSecurityIPGroupRelationResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"DBClusterId" : "pc-*****************",
"RequestId" : "9B7BFB11-C077-4FE3-B051-F69CEB******",
"GlobalSecurityIPGroupRel" : [ {
"GlobalSecurityGroupId" : "g-zsldxfiwjmti0kcm****",
"GIpList" : "192.168.0.1",
"RegionId" : "cn-hangzhou",
"GlobalIgName" : "test_123"
} ]
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | RequiredParam.NotFound | Required input param is not found. | 所需的输入参数不存在。 |
400 | InvalidParameters.Format | The specified parameters are invalid. | 参数不正确。 |
访问错误中心查看更多错误码。