VPC プライベートエンドポイントを作成する
アプリ用に構成されているすべてのプライベートエンドポイントのリストを取得します。
path パラメータ
-
Atlas Project/Group ID。
-
アプリケーションの ObjectID。App Services API プロジェクトとアプリケーション ID のセクションでは、この値を見つける方法が示されています。
body
必須
-
プライベートエンドポイントをホストするクラウドプロバイダー リージョン。
-
クラウドプロバイダーからのプライベートエンドポイント ID。
-
エンドポイントを説明するオプションのコメント。
-
エンドポイントの型。エンドポイントの型と廃止されたエンドポイントの
"general"
または"sync"
への移行の詳細については、「VPC プライベートエンドポイントの使用」を参照してください。値は
sync
またはgeneral
です。
POST /groups/{groupId}/apps/{appId}/security/private_endpoints
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/security/private_endpoints' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"cloud_provider_region":"aws-us-east-1","cloud_provider_endpoint_id":"vpce-12345678","comment":"string","endpoint_type":"sync"}'
リクエスト例
{
"cloud_provider_region": "aws-us-east-1",
"cloud_provider_endpoint_id": "vpce-12345678",
"comment": "string",
"endpoint_type": "sync"
}
応答の例(201)
{
"_id": "string",
"cloud_provider_region": "aws-us-east-1",
"cloud_provider_endpoint_id": "vpce-12345678",
"comment": "string",
"endpoint_type": "sync"
}