Memodifikasi aturan firewall pada server aplikasi simple tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:ModifyFirewallRule |
update |
*Aturan Firewall.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans dari server aplikasi simple yang ditentukan. |
ace0706b2ac4454d984295a94213**** |
| RegionId |
string |
Yes |
ID wilayah dari server aplikasi simple yang ditentukan. Anda dapat memanggil ListRegions untuk mengkueri daftar wilayah Alibaba Cloud yang didukung. |
cn-hangzhou |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Token client adalah string unik yang dihasilkan oleh client Anda. Nilai ClientToken hanya boleh berisi karakter ASCII dan panjangnya tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| RuleId |
string |
Yes |
ID aturan firewall. |
eeea34d9867b4d55a4ff8d5fcfbd**** |
| RuleProtocol |
string |
Yes |
Protokol lapisan transport. Nilai yang valid:
|
TCP |
| Port |
string |
Yes |
Range port. Nilai nomor port yang valid: 1 hingga 65535. Pisahkan port awal dan port akhir dengan garis miring (/). Contoh: |
3306 |
| SourceCidrIp |
string |
No |
Alamat IP atau Blok CIDR. |
10.147.33.** |
| Remark |
string |
No |
Keterangan untuk aturan firewall. |
Custom |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
30637AD6-D977-4833-A54C-CC89483E1FEE |
Contoh
Respons sukses
JSONformat
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E1FEE"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidProtocol.ValueNotSupported | The specified parameter Protocol is invalid. | |
| 400 | InvalidPort.ValueNotSupported | The specified parameter Port is invalid. | |
| 400 | RegionIdNotMatchHost | The parameter regionId does not match the endpoint host. | |
| 400 | InvalidIpProtocol.ValueNotSupported | The parameter Permissions.1.IpProtocol must be specified with case insensitive TCP, UDP, ICMP, GRE or All. | |
| 500 | InternalError | An error occurred while processing your request. | |
| 403 | FirewallRuleLimitExceed | The maximum number of firewall rules in an instance is exceeded. | |
| 403 | FirewallRuleAlreadyExist | The specified Rule already exist | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.