Creates a global IP whitelist template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:CreateGlobalSecurityIPGroup |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmyiu4ekp**** |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| GlobalIgName |
string |
Yes |
The name of the IP whitelist template. The name must meet the following requirements:
|
test_123 |
| GIpList |
string |
Yes |
The IP addresses in the IP whitelist template. Note
Separate multiple IP addresses with commas (,). You can add up to 1,000 IP addresses. |
192.168.0.1,10.10.10.10,172.16.0.1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
5D622714-AEDD-4609-9167-F5DDD3D1**** |
| GlobalSecurityIPGroup |
array<object> |
The global IP whitelist template. |
|
|
object |
1 |
||
| GlobalSecurityGroupId |
string |
The ID of the IP whitelist template. |
g-sdgwqyp4f5j1x3qk**** |
| GlobalIgName |
string |
The name of the IP whitelist template. |
test_123 |
| GIpList |
string |
The IP addresses in the IP whitelist template. |
192.168.0.1,10.10.10.10,172.16.0.1 |
| RegionId |
string |
The region ID. |
cn-hangzhou |
Examples
Success response
JSON format
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****",
"GlobalSecurityIPGroup": [
{
"GlobalSecurityGroupId": "g-sdgwqyp4f5j1x3qk****",
"GlobalIgName": "test_123",
"GIpList": "192.168.0.1,10.10.10.10,172.16.0.1",
"RegionId": "cn-hangzhou"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RequiredParam.NotFound | Required input param is not found. | Missing input parameter |
| 400 | InvalidSecurityIPList.QuotaExceeded | Specified security IP list is not valid: Exceeding the allowed amount of IP address in the list. | The number of IP addresses in the list exceeds the limit |
| 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.