Creates a global IP whitelist template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CreateGlobalSecurityIPGroup |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| GlobalIgName |
string |
Yes |
The name of the IP whitelist template. The name must meet the following requirements:
|
aizy |
| GIpList |
string |
Yes |
The IP addresses in the whitelist template. Note
Separate multiple IP addresses with commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP address whitelists. |
27.18.86.18,183.92.40.129 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F8CA8312-530A-413A-9129-F2BB32A8D404 |
| GlobalSecurityIPGroup |
array<object> |
The IP whitelist templates. |
|
|
object |
The IP whitelist template. |
||
| GlobalSecurityGroupId |
string |
The ID of the IP whitelist template. |
g-2ifynl1jfkdlhhxgva3q |
| GlobalIgName |
string |
The name of the IP whitelist template. The name must meet the following requirements:
|
developer |
| GIpList |
string |
The IP addresses in the whitelist template. Note
Separate multiple IP addresses with commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP address whitelists. |
111.207.194.217,61.149.7.154 |
| RegionId |
string |
The region ID of the instance. |
cn-hangzhou |
Examples
Success response
JSON format
{
"RequestId": "F8CA8312-530A-413A-9129-F2BB32A8D404",
"GlobalSecurityIPGroup": [
{
"GlobalSecurityGroupId": "g-2ifynl1jfkdlhhxgva3q",
"GlobalIgName": "developer",
"GIpList": "111.207.194.217,61.149.7.154",
"RegionId": "cn-hangzhou"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.