Docs 菜单
Docs 主页
/ /
Atlas CLI
/ /

atlas organizations list

返回所有组织。

公共预览版:从MongoDB Atlas Admin API自动生成的 atlas api 子命令提供了对 Admin API的全面覆盖,目前处于公共预览阶段(请通过以下网址提供反馈: https:// 反馈.mongodb.com/ forum/930808 -atlas-cli )。 Admin API功能有自己的发布生命周期,您可以通过提供的API端点文档链接进行检查。

要使用此命令,您必须使用具有“组织成员”角色的用户帐户或 API 密钥进行身份验证。

命令语法
atlas organizations list [options]
名称
类型
必需
说明

-h,--help

false

列表帮助

--includeDeleted

false

指示是否在列表中包含已删除组织的标志。 此选项仅适用于MongoDB Ops Manager组织。 您无法返回已删除的Atlas或Cloud Manager组织。

--limit

int

false

每个结果页面的列项数,最多 500 个。 如果结果超过 500 个,请指定 --page 选项以更改结果页面。 此值默认为 100。

--name

字符串

false

要执行不区分大小写搜索的组织名称。

--omitCount

false

指示 JSON 响应是否返回 JSON 响应中的项目总数 (totalCount) 的标志。

-o, --output

字符串

false

输出格式。 有效值为 json、json-path、go-template 或 go-template-file。 要查看完整输出,请使用 -o json 选项。

--page

int

false

指定结果页面的页码。 该值默认为 1。

名称
类型
必需
说明

-P, --profile

字符串

false

如果命令成功,CLI 将返回类似于以下示例的输出。 括号中的值代表您的价值观。

ID NAME
<Id> <Name>
# Return a JSON-formatted list of all organizations:
atlas organizations list --output json
# Return a JSON-formatted list that includes the organizations named org1 and Org1, but doesn't return org123:
atlas organizations list --name org1 --output json

后退

update

在此页面上