mongocli iam organization apikey whitelist delete¶
iam organization apikey whitelist delete command deletes a
whitelist entry for the specified API key. You must confirm the
operation when you run this command without the
mongocli iam organization|organizations|org|orgs apiKey|apiKeys|apikeys whitelist|whitelists delete|rm <whitelist-entry> [ --apiKey <api-key-id> ] [ --force ] [ --orgId <organization-id> ] [ --output|-o <output-format> ] [ --profile|-P <profile-name> ]
--help to view the command-line help for
The IP or CIDR address. If the entry includes a subnet mask, such as
Unique identifier of the API key.
Flag that indicates that the API key can be deleted without requiring confirmation.
If the command succeeds, it prints the following output to the terminal. If the command returns errors, see Troubleshooting for recommended solutions.
Whitelist entry '<whitelist-entry>' deleted
The default output is a subset of the fields returned by this command. For the complete list of JSON fields returned by the command, see the Public API reference for your MongoDB service:
The following command deletes the whitelist entries for an API key using the default profile, which contains credentials, the organization ID, and specifies the Atlas service. The output is returned in the default format.
mongocli iam org apikey whitelist rm 192.0.2.0 --apiKey 5f4ed27ec90220199065b4bb
The previous command prints the following output to the terminal.
? Are you sure you want to delete: 192.0.2.0 Yes Whitelist entry '192.0.2.0' deleted