mongocli cloud-manager alerts settings delete
删除指定项目的警报配置。
使用此命令,您必须使用具有项目所有者角色的用户帐户或API密钥进行身份验证。
语法
命令语法
mongocli cloud-manager alerts settings delete <alertConfigId> [options]
参数
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
alertConfigId | 字符串 | 是 | 要删除的警报配置的唯一标识符。 |
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
--force | 否 | 标志,表示在执行请求的操作之前是否跳过确认提示。 | |
-h, --help | 否 | 删除的帮助 | |
--projectId | 字符串 | 否 | 用于标识要使用的项目的十六进制字符串。此选项覆盖配置文件或环境变量的设置。 |
继承选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-P, --profile | 字符串 | 否 | 从配置文件中使用的配置文件名称。有关MongoCLI配置文件的配置信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
输出
如果命令成功执行,CLI 将返回类似于以下示例的输出。括号中的值代表您的值。
Alert config '<Name>' deleted
示例
# Remove the alert configuration with the ID 5d1113b25a115342acc2d1aa in the project with the ID 5e2211c17a3e5a48f5497de3: mongocli [ops-manager|cloud-manager] alerts settings delete 5d1113b25a115342acc2d1aa --projectId 5e2211c17a3e5a48f5497de3