Membuat templat daftar putih IP global.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CreateGlobalSecurityIPGroup |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| GlobalIgName |
string |
Yes |
Nama templat daftar putih IP. Nama harus memenuhi persyaratan berikut:
|
aizy |
| GIpList |
string |
Yes |
Alamat IP dalam templat daftar putih. Catatan
Pisahkan beberapa alamat IP dengan koma (,). Anda dapat membuat hingga 1.000 alamat IP atau blok CIDR di seluruh daftar putih alamat IP. |
27.18.86.18,183.92.40.129 |
Elemen respons
|
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. Catatan
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 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "F8CA8312-530A-413A-9129-F2BB32A8D404",
"GlobalSecurityIPGroup": [
{
"GlobalSecurityGroupId": "g-2ifynl1jfkdlhhxgva3q",
"GlobalIgName": "developer",
"GIpList": "111.207.194.217,61.149.7.154",
"RegionId": "cn-hangzhou"
}
]
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.