Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs 菜单
Docs 主页
/ /
Atlas CLI
/ /

atlas organizations create

创建组织。

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

使用 API 密钥进行身份验证时,API 密钥所属的组织必须启用跨组织计费。 生成的组织将链接到付款组织。

命令语法
atlas organizations create <name> [options]
名称
类型
必需
说明

名称

字符串

true

标识组织的标签。

名称
类型
必需
说明

--apiKeyDescription

字符串

false

API 密钥的描述。 创建使用 API 密钥进行身份验证的组织时必需。

--apiKeyRole

字符串

false

要分配给API密钥的一个或多个角色。要分配多个角色,请为每个角色指定单独的角色标志,或使用一个角色标志将所有角色指定为以逗号分隔的列表。有关接受值的完整列表,请参阅相应Atlas API端点的列项枚举:https://www.mongodb.com/zh-cn/docs/api/doc/atlas-admin-api-v2 /operation/operation- createapikey 。要学习;了解有关组织级别用户角色的更多信息,请参阅:https://dochub.mongodb.org/core/atlas-org-roles 。创建使用API密钥进行身份验证的组织时必需。

--federationSettingsId

字符串

false

唯一的 24-十六进制数字string ,用于标识联合设置。

-h,--help

false

创建帮助

-o, --output

字符串

false

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

--ownerId

字符串

false

唯一的 24 位字符串,用于标识要被授予指定组织的 Org Owner 角色的 Atlas user。使用 API 密钥时必需。

名称
类型
必需
说明

-P, --profile

字符串

false

要从您的配置文件中使用的配置文件的名称。要学习;了解Atlas CLI配置文件,请参阅 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings。

# Create an Atlas organization with the name myOrg:
atlas organizations create myOrg --output json

后退

名单

在此页面上