CreateGlobalSecurityIPGroup
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. You can call DescribeRegions to query regions. |
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 (,). A maximum of 1,000 IP addresses or CIDR blocks can be added to all IP whitelists in total. |
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 list of 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 (,). A maximum of 1,000 IP addresses or CIDR blocks can be added to all IP whitelists in total. |
111.207.194.217,61.149.7.154 |
| RegionId |
string |
The region ID. |
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. | The specified SecurityIPList parameter is invalid. Specify a valid whitelist. A whitelist can contain up to 1,000 different IP addresses. Separate multiple IP addresses with commas (,). Supported formats include 0.0.0.0/0, 10.23.12.24 (IP address), and 10.23.12.24/24 (CIDR block). /24 indicates the prefix of the CIDR block is 24-bit. You can replace 24 with a value ranging from 1 to 32. |
| 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.