mongocli iam globalWhitelist delete
The iam globalWhitelist delete
command deletes a global whitelist
entry for an Ops Manager instance. You must confirm the operation when
you run this command without the --force
option.
You must have credentials with the Global Owner role to delete a global whitelist entry.
Syntax
mongocli iam globalWhitelist|ipwhitelist delete|rm <whitelist-entry-id> [ --force ] [ --profile|-P <profile-name> ]
Note
Use -h
or --help
to view the command-line help for
this command.
Arguments
Option | Type | Description | Required? |
---|---|---|---|
<whitelist-entry-id> | string | Unique identifier of the global whitelist entry to delete. | yes |
Options
Option | Type | Description | Required? |
---|---|---|---|
--force | Flag that indicates that the global whitelist entry can
be deleted without requiring confirmation. | no | |
--profile , -P | string | Name of the profile where your credentials are saved. If omitted, uses the default profile. To learn more about creating a profile, see Configure the MongoDB CLI. You must have credentials with the Global Owner role to delete a global whitelist entry. | no |
Output
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-id>' deleted
Example
The following command deletes the specified whitelist entry for an
Ops Manager instance using the default profile, which contains
the credentials for accessing the instance. The command does
not prompt for confirmation because the --force
option is
specified with the command.
mongocli iam globalWhitelists delete 5f5bad7a57aef32b04ed0210 --force
The previous command prints the following output to the terminal.
Whitelist entry '5f5bad7a57aef32b04ed0210' deleted