Create an IP address or CIDR block in the Access List

POST /groups/{groupId}/apps/{appId}/security/access_list

Create an IP address or CIDR block in the Access List for your App Services app.

Path parameters

application/json

Body Required

The IP Access List entry to create.

  • address string Required

    The value of the IP address or CIDR block.

  • comment string

    An optional comment included in the Access List entry.

Responses

  • 201 application/json
    Hide response attributes Show response attributes object
    • _id string(ObjectID)

      ObjectID

    • address string
    • ip string(net.IP)

      net.IP

    • network string(net.IPNet)

      net.IPNet

    • comment string
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"
}