创建全局IP白名单模板。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
dds:CreateGlobalSecurityIPGroup |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID,您可以调用 DescribeRegions 查询。 |
cn-hangzhou |
| GlobalIgName |
string |
是 |
IP 白名单模板名称。IP 白名单模板名称需满足如下要求:
|
aizy |
| GIpList |
string |
是 |
白名单模板内的 IP 地址。 说明
多个 IP 地址需要用英文逗号隔开,所有 IP 白名单累积支持添加 1000 个 IP 地址或地址段。 |
27.18.86.18,183.92.40.129 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
F8CA8312-530A-413A-9129-F2BB32A8D404 |
| GlobalSecurityIPGroup |
array<object> |
IP 白名单模板列表 |
|
|
object |
IP 白名单模板 |
||
| GlobalSecurityGroupId |
string |
IP 白名单模板 ID。 |
g-2ifynl1jfkdlhhxgva3q |
| GlobalIgName |
string |
IP 白名单模板名称。IP 白名单模板名称需满足如下要求:
|
developer |
| GIpList |
string |
白名单模板内的 IP 地址。 说明
多个 IP 地址需要用英文逗号隔开,所有 IP 白名单累积支持添加 1000 个 IP 地址或地址段。 |
111.207.194.217,61.149.7.154 |
| RegionId |
string |
地域 ID。 |
cn-hangzhou |
示例
正常返回示例
JSON格式
{
"RequestId": "F8CA8312-530A-413A-9129-F2BB32A8D404",
"GlobalSecurityIPGroup": [
{
"GlobalSecurityGroupId": "g-2ifynl1jfkdlhhxgva3q",
"GlobalIgName": "developer",
"GIpList": "111.207.194.217,61.149.7.154",
"RegionId": "cn-hangzhou"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | RequiredParam.NotFound | Required input param is not found. | |
| 400 | InvalidSecurityIPList.QuotaExceeded | Specified security IP list is not valid: Exceeding the allowed amount of IP address in the list. | |
| 400 | InvalidSecurityIPList.Format | Specified security IP list format is not valid. | |
| 400 | InvalidSecurityIPList.Duplicate | Specified security IP list is not valid: Duplicate IP address in the list | |
| 404 | InvalidUser.NotFound | Specified user does not exist. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。