Modify a VPC Private Endpoint
Update the configuration of a private endpoint.
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.
-
The _id ObjectID of a VPC private endpoint.
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
.
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"}'
Request examples
{
"cloud_provider_region": "aws-us-east-1",
"cloud_provider_endpoint_id": "vpce-12345678",
"comment": "string",
"endpoint_type": "sync"
}
Response examples (200)
{
"_id": "string",
"cloud_provider_region": "aws-us-east-1",
"cloud_provider_endpoint_id": "vpce-12345678",
"comment": "string",
"endpoint_type": "sync"
}