Toggle Non-VPC Requests
For Apps with Private Endpoints enabled, toggle whether or not the App processes requests that originate from outside of the VPC.
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.
POST
/groups/{groupId}/apps/{appId}/security/allow_non_vpc_client_requests
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/security/allow_non_vpc_client_requests' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"allow_non_vpc_client_requests":true}'
Request examples
{
"allow_non_vpc_client_requests": true
}