Mengubah templat daftar putih lintas produk.
Deskripsi operasi
Sebelum memanggil operasi ini, perhatikan hal berikut:
-
Gunakan versi terbaru dari Alibaba Cloud SDK atau DAS SDK.
-
Saat Anda menggunakan SDK untuk memanggil layanan DAS, tentukan wilayah cn-shanghai.
-
Operasi ini menggunakan versi terbaru yang didukung secara default. Untuk informasi lebih lanjut mengenai database dan wilayah yang didukung oleh berbagai versi DAS Edisi Perusahaan, lihat Edisi DAS dan fitur yang didukung.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:ModifySecurityIPGroup |
update |
*All Resource
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionName |
string |
Yes |
ID wilayah. |
cn-shanghai |
| GlobalIgName |
string |
Yes |
Nama templat daftar putih alamat IP. Nama harus memenuhi persyaratan berikut:
Catatan
Parameter ini menimpa nilai awal. |
test_123 |
| GIpList |
string |
Yes |
Alamat IP dalam templat daftar putih. Catatan
Pisahkan beberapa alamat IP dengan koma (,). Maksimum 1.000 alamat IP atau blok CIDR dapat ditambahkan ke semua daftar putih alamat IP. |
192.168.0.1 |
| GlobalSecurityGroupId |
string |
Yes |
ID templat daftar putih alamat IP. |
g-9ubyrqeoko****,g-pdxlrvn13k**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| Code |
string |
Kode status. |
200 |
| Data |
object |
Data yang dikembalikan. |
|
| GlobalSecurityIPGroup |
array<object> |
Informasi tentang templat daftar putih lintas produk. |
|
|
object |
Informasi tentang templat daftar putih lintas produk. |
||
| SecurityIpType |
string |
The IP type. |
ipv4 |
| RegionId |
string |
The region ID. Example: cn-hangzhou |
cn-beijing |
| GlobalIgName |
string |
The name of the IP address whitelist template. |
test |
| GlobalSecurityGroupId |
string |
The ID of the IP address whitelist template. |
g-b1asblm5ae**** |
| WhitelistNetType |
string |
The network type of the whitelist. |
mix |
| GIpList |
string |
The IP addresses in the whitelist template. Catatan
Separate multiple IP addresses with commas. All IP address whitelists support a combined total of 1,000 IP addresses or address segments. |
192.168.0.1 |
| Message |
string |
Paket yang dikembalikan. Catatan
Jika permintaan berhasil, Successful dikembalikan. Jika permintaan gagal, paket kesalahan dikembalikan, seperti kode kesalahan. |
Successful |
| RequestId |
string |
ID permintaan. |
B6D17591-B48B-4D31-9CD6-9B9796B2**** |
| Success |
string |
Apakah permintaan berhasil:
|
true |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Data": {
"GlobalSecurityIPGroup": [
{
"SecurityIpType": "ipv4",
"RegionId": "cn-beijing",
"GlobalIgName": "test",
"GlobalSecurityGroupId": "g-b1asblm5ae****",
"WhitelistNetType": "mix",
"GIpList": "192.168.0.1"
}
]
},
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | |
| 403 | NoPermission | You are not authorized to do this action. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.