Navigation

Delete an Entry from a Whitelist

Base URL: https://cloud.mongodb.com/

Resource

DELETE /users/{USER-ID}/whitelist/{IP-ADDRESS}
DELETE /api/public/v1.0/users/{USER-ID}/whitelist/{CIDR-BLOCK}

Note

You cannot remove your current IP address from the whitelist.

Request Path Parameters

Parameter Required/Optional Description
userId Required User ID of the current user. To retrieve the ID of the current user, see Get All Users in a Group.
ipAddress Required unless you specify a cidrBlock. A whitelisted IP address that you want to remove from the whitelist for the specified user.
cidrBlock Required unless you specify an ipAddress. A CIDR-notated range of IP addresses. Entering 0.0.0.0/0 gives unrestricted access to whitelisted operations.

Request Query Parameters

This endpoint does not use HTTP request query parameters.

Request Body Parameters

This endpoint does not use HTTP request body parameters.

Response

This endpoint responds with an HTTP status code.

Example Request

curl -i -u "username:apiKey" --digest -X DELETE "https://cloud.mongodb.com/api/public/v1.0/users/5356823b3004dee37132bb7b/whitelist/2.3.4.5"

Example Response

HTTP/1.1 200 OK