セキュリティグループのインバウンドルールを取り消し、インバウンドアクセス権限設定を削除します。
操作説明
セキュリティグループ API ドキュメントでは、トラフィックの開始元をソース (Source)、データ転送の受信先を送信先 (Dest) と呼びます。
以下のパラメーターセットのいずれかを使用して、インバウンドセキュリティグループルールを識別できます。単一のパラメーターのみを指定しても、セキュリティグループルールを識別することはできません。
指定された IP アドレス範囲の権限設定を取り消す場合: IpProtocol、PortRange、Policy、SourceCidrIp。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:RevokeSecurityGroup |
update |
*すべてのリソース。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| IpProtocol |
string |
必須 |
トランスポートレイヤープロトコル。値は大文字と小文字が区別されます。有効な値:
列挙値:
|
all |
| PortRange |
string |
必須 |
セキュリティグループのトランスポートレイヤープロトコルに関連する宛先ポート番号の範囲。有効な値:
|
22/22 |
| SecurityGroupId |
string |
必須 |
セキュリティグループの ID。 |
sg-bp67acfmxazb4p**** |
| Policy |
string |
任意 |
アクセス権限の設定項目。有効な値:
列挙値:
|
accept |
| Priority |
integer |
任意 |
セキュリティグループルールの優先度。有効な値: 1 ~ 100。デフォルト値: 1。 |
1 |
| SourceCidrIp |
string |
必須 |
ソース IP アドレス範囲。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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。