Memanggil RevokeSecurityGroupEgress untuk menghapus aturan grup keamanan arah keluar dan mencabut izin akses arah keluar dari grup keamanan.
Deskripsi operasi
Dalam dokumentasi API untuk grup keamanan, ujung yang memulai trafik disebut sebagai sumber, dan ujung yang menerima data disebut sebagai tujuan (Dest).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:RevokeSecurityGroupEgress |
update |
*Semua Sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| IpProtocol |
string |
Yes |
Protokol lapisan transport. Nilai bersifat case-sensitive. Nilai valid:
Valid values:
|
all |
| PortRange |
string |
Yes |
Rentang Port tujuan yang sesuai dengan protokol lapisan transport. Nilai valid:
|
22/22 |
| SecurityGroupId |
string |
Yes |
ID grup keamanan. |
sg-bp67acfmxazb4ph*** |
| Policy |
string |
No |
Pengaturan untuk izin akses. Nilai valid:
Nilai default: accept. Valid values:
|
accept |
| Priority |
integer |
No |
Prioritas aturan grup keamanan. Nilai valid: 1 hingga 100. Nilai yang lebih kecil menunjukkan prioritas yang lebih tinggi. Nilai default: 1. |
1 |
| DestCidrIp |
string |
Yes |
Rentang alamat IP tujuan. Blok CIDR dan rentang alamat IPv4 didukung. Nilai default: null. |
10.0.0.0/8 |
| SourcePortRange |
string |
No |
Rentang Port sumber yang sesuai dengan protokol lapisan transport. Nilai valid:
|
22/22 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | InvalidSecurityGroupId.NotFound | The specified SecurityGroupId does not exist. | |
| 400 | SecurityGroupRuleConflict.Duplicated | The SecurityGroup rule already exists. | |
| 400 | AuthorizationLimitExceed | The limit of authorization records in the security group reaches. | |
| 400 | SecurityGroupRule.NotFound | The input security group rule does not exist. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.