セキュリティグループのインバウンドルールを削除します。ルールを削除すると、そのルールによって実装されていたアクセスの制御が解除されます。
操作説明
セキュリティグループ関連の API ドキュメントでは、インバウンドトラフィックとは、送信元から送信され、送信先で受信されるトラフィックを指します。
以下のいずれかのパラメーターグループを指定することで、セキュリティグループのインバウンドルールを特定できます。単一のパラメーターのみを指定しても、セキュリティグループルールは特定できません。
CIDR ブロックに対するアクセスの制御を解除するには、IpProtocol、PortRange、Policy、SourceCidrIp のうち 1 つ以上のパラメーターを指定できます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:RevokeSecurityGroup |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| IpProtocol |
string |
必須 |
トランスポート層プロトコルです。このパラメーターの大文字・小文字は区別されます。有効な値は以下のとおりです。
|
all |
| PortRange |
string |
必須 |
セキュリティグループルールに対応するトランスポート層プロトコルの宛先ポート範囲です。有効な値は以下のとおりです。
|
22/22 |
| SecurityGroupId |
string |
必須 |
セキュリティグループの ID です。 |
sg-bp67acfmxazb4p**** |
| Policy |
string |
任意 |
権限付与ポリシーです。有効な値は以下のとおりです。
|
accept |
| Priority |
integer |
任意 |
セキュリティグループルールの優先度です。有効な値:1 ~ 100。デフォルト値:1。 |
1 |
| SourceCidrIp |
string |
必須 |
送信元 CIDR ブロックです。CIDR ブロックおよび IPv4 アドレスがサポートされています。デフォルト値:0.0.XX.XX/0。 |
10.0.XX.XX/8 |
| SourcePortRange |
string |
任意 |
セキュリティグループルールに対応するトランスポート層プロトコルの送信元ポート範囲です。有効な値は以下のとおりです。
|
22/22 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID です。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
例
成功レスポンス
JSONJSON
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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 | DependencyViolation | There is still instance(s) in the specified security group. | |
| 400 | CallInterface | Call Interface Happen Error. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。