RevokeSecurityGroupEgress を呼び出して、アウトバウンドセキュリティグループルールを削除し、セキュリティグループのアウトバウンドアクセス権限を取り消します。
操作説明
セキュリティグループの API ドキュメントでは、トラフィックを送信する側をソース、データを受信する側を送信先 (Dest) と呼びます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:RevokeSecurityGroupEgress |
update |
*すべてのリソース。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| IpProtocol |
string |
必須 |
トランスポートレイヤープロトコル。値は大文字と小文字が区別されます。有効な値:
列挙値:
|
all |
| PortRange |
string |
必須 |
トランスポートレイヤープロトコルに対応する送信先ポートの有効値。有効な値:
|
22/22 |
| SecurityGroupId |
string |
必須 |
セキュリティグループの ID。 |
sg-bp67acfmxazb4ph*** |
| Policy |
string |
任意 |
アクセス権限の設定項目。有効な値:
デフォルト値: accept。 列挙値:
|
accept |
| Priority |
integer |
任意 |
セキュリティグループルールの優先度。有効な値: 1 ~ 100。値が小さいほど優先度が高くなります。 デフォルト値: 1。 |
1 |
| DestCidrIp |
string |
必須 |
送信先 IP アドレス範囲。CIDR ブロックおよび IPv4 アドレス範囲がサポートされています。 デフォルト値: null。 |
10.0.0.0/8 |
| SourcePortRange |
string |
任意 |
トランスポートレイヤープロトコルに対応するソースポートの有効値。有効な値:
|
22/22 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
例
成功レスポンス
JSONJSON
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
エラーコード
|
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 | CallInterface | Call Interface Happen Error. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。