Mengkueri hasil penerapan aturan templat firewall ke server aplikasi sederhana.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:DescribeFirewallTemplateRulesApplyResult |
list |
*FirewallTemplate
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID server aplikasi sederhana. |
ace0706b2ac4454d984295a94213**** |
| RegionId |
string |
Yes |
ID Wilayah server aplikasi sederhana. Anda dapat memanggil operasi ListRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| ClientToken |
string |
No |
Token Klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan token, tetapi Anda harus memastikan token tersebut unik di antara permintaan yang berbeda. token hanya dapat berisi karakter dalam format ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat How to ensure idempotence. |
123e4567-e89b-12d3-a456-426655440000 |
| FirewallTemplateId |
string |
Yes |
ID templat firewall. |
ft-bcf1a7hrdq717**** |
| TaskId |
string |
Yes |
ID eksekusi untuk menerapkan aturan templat. |
aft-ikgt0bynitvs3**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
20758A-585D-4A41-A9B2-28DA8F4F534F |
| data |
array<object> |
The returned results. |
|
|
object |
|||
| RuleProtocol |
string |
The transport layer protocol that the rule supports. Valid values:
|
TCP |
| Port |
string |
The port range. Valid values: 1 to 65535. Specify a port range in the format of <start port number>/<end port number>. Example: Catatan
If you set RuleProtocol to ICMP, you must set Port to -1/-1. |
8080 |
| SourceCidrIp |
string |
The source address to which you want to grant access permissions. CIDR blocks and IPv4 addresses are supported. |
119.145.XX.XX |
| Remark |
string |
The remarks of the firewall rule. |
test |
| Success |
boolean |
The status of applying the firewall template rule to the simple application servers.
|
true |
| ErrorCode |
string |
The error codes when the firewall template rule fails to be applied. |
500 |
| ErrorInfo |
string |
The error message that is displayed when the firewall template rule fails to be applied. |
An error occurred while processing your request. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F",
"data": [
{
"RuleProtocol": "TCP",
"Port": "8080",
"SourceCidrIp": "119.145.XX.XX",
"Remark": "test",
"Success": true,
"ErrorCode": "500",
"ErrorInfo": "An error occurred while processing your request."
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.