Create a VPC Private Endpoint
Configure a new private endpoint for the App.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
Body
Required
-
The cloud provider region that hosts the private endpoint.
-
The private endpoint ID from the cloud provider.
-
An optional comment that describes the endpoint.
-
The type of endpoint. For more information on endpoint types and migrating deprecated endpoints to
"general"
or"sync"
, see Use a VPC Private Endpoint.Values are
sync
orgeneral
.
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"}'
Request examples
{
"cloud_provider_region": "aws-us-east-1",
"cloud_provider_endpoint_id": "vpce-12345678",
"comment": "string",
"endpoint_type": "sync"
}
Response examples (201)
{
"_id": "string",
"cloud_provider_region": "aws-us-east-1",
"cloud_provider_endpoint_id": "vpce-12345678",
"comment": "string",
"endpoint_type": "sync"
}