エンドポイントをセキュリティグループに関連付けます。
操作説明
-
AttachSecurityGroupToVpcEndpoint は非同期操作です。 リクエストの送信後、システムはリクエスト ID を返し、バックグラウンドでタスクを実行します。 ListVpcEndpoints 操作を呼び出して、エンドポイントの状態をクエリできます。
エンドポイントが 保留中 (Pending) 状態の場合、エンドポイントはセキュリティグループに関連付け処理中です。
エンドポイントが アクティブ (Active) 状態の場合、エンドポイントはセキュリティグループに関連付けられています。
-
指定された期間内に AttachSecurityGroupToVpcEndpoint 操作を繰り返し呼び出して、エンドポイントをセキュリティグループに関連付けることはできません。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
セキュリティグループに関連付けるエンドポイントのリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストをクエリできます。 |
eu-west-1 |
| SecurityGroupId |
string |
必須 |
エンドポイントに関連付けるセキュリティグループの ID。 |
sg-hp3c8qj1tyct90ej**** |
| EndpointId |
string |
必須 |
セキュリティグループに関連付けるエンドポイントの ID。 |
ep-hp33b2e43fays7s8**** |
| DryRun |
boolean |
任意 |
実際のリクエストを実行せずに、ドライランのみを実行するかどうかを指定します。 有効な値:
|
false |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。 トークンには ASCII 文字のみを含めることができます。 |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| RegionId |
string |
必須 |
セキュリティグループに関連付けるエンドポイントのリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストをクエリできます。 |
eu-west-1 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
8D778FF9-7640-4C13-BCD6-9265CA9A2F81 |
例
成功レスポンス
JSONJSON
{
"RequestId": "8D778FF9-7640-4C13-BCD6-9265CA9A2F81"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | EndpointNotFound | The specified Endpoint does not exist. | |
| 400 | EndpointOperationDenied | The specified operation of endpoint is not allowed. | |
| 400 | EndpointLocked | The specified Endpoint is locked. | |
| 400 | EndpointConnectionOperationDenied | The endpoint is being connected. | |
| 400 | SecurityGroupExist | The specified security group already exists. | |
| 400 | EndpointServiceDeleted | The specified Service is already deleted. | |
| 400 | SecurityGroupNotFound | The specified security group does not exist. | |
| 400 | SecurityGroupTypeNotSupport | The specified security group type is not supported. | |
| 400 | SecurityGroupTypeOnlySingleTypeSupporteded | The specified security group only support one type. | |
| 400 | GatewayLoadBalancerNotSupportSecurityGroup | The gateway load balancer not support security group. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。