mongocli IAM organizations apiKeys accessLists delete
Remove the specified IP access list entry from your API Key.
To use this command, you must authenticate with a user account or an API key with the Read Write role.
構文
mongocli iam organizations apiKeys accessLists delete <entry> [options]
Arguments
名前 | タイプ | 必須 | 説明 |
---|---|---|---|
エントリ | string | true | IP or CIDR address that you want to remove from the access list. If the entry includes a subnet mask, such as 192.0.2.0/24, use the URL-encoded value %2F for the forward slash /. |
オプション
名前 | タイプ | 必須 | 説明 |
---|---|---|---|
--apiKey | string | false | Unique 24-digit ID that identifies your API key. |
--force | false | 要求されたアクションを続行する前に確認プロンプトをスキップするかどうかを示すフラグ。 | |
-h, --help | false | 削除のヘルプ | |
--orgId | string | false | 使用する組織ID。 このオプションは、構成ファイルまたは環境変数の 設定を上書きします。 |
継承されたオプション
名前 | タイプ | 必須 | 説明 |
---|---|---|---|
-P, --profile | string | false | 構成ファイルから使用するプロファイルの名前。 MongoCLI のプロファイルの詳細については、 https://docub.mongodb.org/core/atlas-cli-configuration-file を参照してください。 |
出力
コマンドが成功すると、CLI は次のサンプルのような出力を返します。 括弧内の値は 値を表します。
Access list entry '<Name>' deleted
例
# Remove the IP address 192.0.2.0 from the access list for the API key with the ID 5f24084d8dbffa3ad3f21234 in the organization with the ID 5a1b39eec902201990f12345: mongocli iam organizations apiKeys accessLists delete 192.0.2.0 --apiKey 5f24084d8dbffa3ad3f21234 --orgId 5a1b39eec902201990f12345