Create an IP address or CIDR block in the Access List
Create an IP address or CIDR block in the Access List for your App Services 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.
POST
/groups/{groupId}/apps/{appId}/security/access_list
curl \
--request POST 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/security/access_list' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"address":"string","comment":"string"}'
Request examples
{
"address": "string",
"comment": "string"
}
Response examples (201)
{
"_id": "string",
"address": "string",
"ip": "string",
"network": "string",
"comment": "string"
}