Docs 菜单
Docs 主页
/ /
Atlas
/ /

atlas organizations list

在此页面上

  • 语法
  • 选项
  • 继承选项
  • 输出
  • 举例

返回所有组织。

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

命令语法
atlas organizations list [options]
名称
类型
必需
说明
-h,--help
false
列表帮助
--includeDeleted
false
指示是否在列表中包含已删除组织的标志。 此选项仅适用于 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
要从配置文件中使用的配置文件的名称。 要了解 Atlas CLI 的配置文件,请参阅 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings。

如果命令成功,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

后退

更新

来年

用户