Menambahkan aturan firewall SQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:AddFirewallRules |
create |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. |
pc-***************** |
| RuleName |
string |
No |
Nama aturan firewall. Anda hanya dapat menentukan satu nama aturan. Catatan
|
testrule |
| RuleConfig |
string |
No |
String JSON yang berisi parameter konfigurasi dan nilainya untuk aturan firewall yang akan ditambahkan. Semua nilai parameter harus berupa string. Contoh:
|
{"id":"test","enabled":"true","mode":"Collecting","users":{"applies_to":[]},"endpoint":"[{"EndpointName":"pe-************","EndpointType":"Cluster","DBEndpointDescription":"Cluster Address"},{"EndpointName":"pe-************","EndpointType":"Custom","DBEndpointDescription":"pc-************"},{"EndpointName":"pe-************","EndpointType":"Custom","DBEndpointDescription":"pc-************K"}]","type":"WhiteList"} |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-************ |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| Message |
string |
The response message. |
Successful |
| Success |
boolean |
The result of the request. Valid values:
|
True |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"Message": "Successful",
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.