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