1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. Organization
MongoDB Atlas v3.30.0 published on Friday, Mar 21, 2025 by Pulumi

mongodbatlas.Organization

Explore with Pulumi AI

# Resource: mongodbatlas.Organization

mongodbatlas.Organization provides programmatic management (including creation) of a MongoDB Atlas Organization resource.

IMPORTANT NOTE: When you establish an Atlas organization using this resource, it automatically generates a set of initial public and private Programmatic API Keys. These key values are vital to store because you’ll need to use them to grant access to the newly created Atlas organization. To use this resource, role_names for new API Key must have the ORG_OWNER role specified.

IMPORTANT NOTE: To use this resource, the requesting API Key must have the Organization Owner role. The requesting API Key’s organization must be a paying organization. To learn more, see Configure a Paying Organization in the MongoDB Atlas documentation.

NOTE Import command is currently not supported for this resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";

const test = new mongodbatlas.Organization("test", {
    orgOwnerId: "6205e5fffff79cde6f",
    name: "testCreateORG",
    description: "test API key from Org Creation Test",
    roleNames: ["ORG_OWNER"],
});
Copy
import pulumi
import pulumi_mongodbatlas as mongodbatlas

test = mongodbatlas.Organization("test",
    org_owner_id="6205e5fffff79cde6f",
    name="testCreateORG",
    description="test API key from Org Creation Test",
    role_names=["ORG_OWNER"])
Copy
package main

import (
	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mongodbatlas.NewOrganization(ctx, "test", &mongodbatlas.OrganizationArgs{
			OrgOwnerId:  pulumi.String("6205e5fffff79cde6f"),
			Name:        pulumi.String("testCreateORG"),
			Description: pulumi.String("test API key from Org Creation Test"),
			RoleNames: pulumi.StringArray{
				pulumi.String("ORG_OWNER"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;

return await Deployment.RunAsync(() => 
{
    var test = new Mongodbatlas.Organization("test", new()
    {
        OrgOwnerId = "6205e5fffff79cde6f",
        Name = "testCreateORG",
        Description = "test API key from Org Creation Test",
        RoleNames = new[]
        {
            "ORG_OWNER",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.Organization;
import com.pulumi.mongodbatlas.OrganizationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var test = new Organization("test", OrganizationArgs.builder()
            .orgOwnerId("6205e5fffff79cde6f")
            .name("testCreateORG")
            .description("test API key from Org Creation Test")
            .roleNames("ORG_OWNER")
            .build());

    }
}
Copy
resources:
  test:
    type: mongodbatlas:Organization
    properties:
      orgOwnerId: 6205e5fffff79cde6f
      name: testCreateORG
      description: test API key from Org Creation Test
      roleNames:
        - ORG_OWNER
Copy

Create Organization Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Organization(name: string, args: OrganizationArgs, opts?: CustomResourceOptions);
@overload
def Organization(resource_name: str,
                 args: OrganizationArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def Organization(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 description: Optional[str] = None,
                 org_owner_id: Optional[str] = None,
                 role_names: Optional[Sequence[str]] = None,
                 api_access_list_required: Optional[bool] = None,
                 federation_settings_id: Optional[str] = None,
                 gen_ai_features_enabled: Optional[bool] = None,
                 multi_factor_auth_required: Optional[bool] = None,
                 name: Optional[str] = None,
                 restrict_employee_access: Optional[bool] = None)
func NewOrganization(ctx *Context, name string, args OrganizationArgs, opts ...ResourceOption) (*Organization, error)
public Organization(string name, OrganizationArgs args, CustomResourceOptions? opts = null)
public Organization(String name, OrganizationArgs args)
public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
type: mongodbatlas:Organization
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OrganizationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var organizationResource = new Mongodbatlas.Organization("organizationResource", new()
{
    Description = "string",
    OrgOwnerId = "string",
    RoleNames = new[]
    {
        "string",
    },
    ApiAccessListRequired = false,
    FederationSettingsId = "string",
    GenAiFeaturesEnabled = false,
    MultiFactorAuthRequired = false,
    Name = "string",
    RestrictEmployeeAccess = false,
});
Copy
example, err := mongodbatlas.NewOrganization(ctx, "organizationResource", &mongodbatlas.OrganizationArgs{
	Description: pulumi.String("string"),
	OrgOwnerId:  pulumi.String("string"),
	RoleNames: pulumi.StringArray{
		pulumi.String("string"),
	},
	ApiAccessListRequired:   pulumi.Bool(false),
	FederationSettingsId:    pulumi.String("string"),
	GenAiFeaturesEnabled:    pulumi.Bool(false),
	MultiFactorAuthRequired: pulumi.Bool(false),
	Name:                    pulumi.String("string"),
	RestrictEmployeeAccess:  pulumi.Bool(false),
})
Copy
var organizationResource = new Organization("organizationResource", OrganizationArgs.builder()
    .description("string")
    .orgOwnerId("string")
    .roleNames("string")
    .apiAccessListRequired(false)
    .federationSettingsId("string")
    .genAiFeaturesEnabled(false)
    .multiFactorAuthRequired(false)
    .name("string")
    .restrictEmployeeAccess(false)
    .build());
Copy
organization_resource = mongodbatlas.Organization("organizationResource",
    description="string",
    org_owner_id="string",
    role_names=["string"],
    api_access_list_required=False,
    federation_settings_id="string",
    gen_ai_features_enabled=False,
    multi_factor_auth_required=False,
    name="string",
    restrict_employee_access=False)
Copy
const organizationResource = new mongodbatlas.Organization("organizationResource", {
    description: "string",
    orgOwnerId: "string",
    roleNames: ["string"],
    apiAccessListRequired: false,
    federationSettingsId: "string",
    genAiFeaturesEnabled: false,
    multiFactorAuthRequired: false,
    name: "string",
    restrictEmployeeAccess: false,
});
Copy
type: mongodbatlas:Organization
properties:
    apiAccessListRequired: false
    description: string
    federationSettingsId: string
    genAiFeaturesEnabled: false
    multiFactorAuthRequired: false
    name: string
    orgOwnerId: string
    restrictEmployeeAccess: false
    roleNames:
        - string
Copy

Organization Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Organization resource accepts the following input properties:

Description This property is required. string
OrgOwnerId This property is required. string
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
RoleNames This property is required. List<string>
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
ApiAccessListRequired bool
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
FederationSettingsId string
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
GenAiFeaturesEnabled bool
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
MultiFactorAuthRequired bool
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
Name string
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
RestrictEmployeeAccess bool
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
Description This property is required. string
OrgOwnerId This property is required. string
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
RoleNames This property is required. []string
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
ApiAccessListRequired bool
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
FederationSettingsId string
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
GenAiFeaturesEnabled bool
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
MultiFactorAuthRequired bool
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
Name string
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
RestrictEmployeeAccess bool
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
description This property is required. String
orgOwnerId This property is required. String
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
roleNames This property is required. List<String>
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
apiAccessListRequired Boolean
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
federationSettingsId String
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
genAiFeaturesEnabled Boolean
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
multiFactorAuthRequired Boolean
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
name String
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
restrictEmployeeAccess Boolean
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
description This property is required. string
orgOwnerId This property is required. string
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
roleNames This property is required. string[]
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
apiAccessListRequired boolean
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
federationSettingsId string
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
genAiFeaturesEnabled boolean
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
multiFactorAuthRequired boolean
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
name string
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
restrictEmployeeAccess boolean
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
description This property is required. str
org_owner_id This property is required. str
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
role_names This property is required. Sequence[str]
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
api_access_list_required bool
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
federation_settings_id str
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
gen_ai_features_enabled bool
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
multi_factor_auth_required bool
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
name str
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
restrict_employee_access bool
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
description This property is required. String
orgOwnerId This property is required. String
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
roleNames This property is required. List<String>
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
apiAccessListRequired Boolean
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
federationSettingsId String
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
genAiFeaturesEnabled Boolean
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
multiFactorAuthRequired Boolean
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
name String
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
restrictEmployeeAccess Boolean
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.

Outputs

All input properties are implicitly available as output properties. Additionally, the Organization resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
OrgId string
The organization id.
PrivateKey string
PublicKey string
Public API key value set for the specified organization API key.
Id string
The provider-assigned unique ID for this managed resource.
OrgId string
The organization id.
PrivateKey string
PublicKey string
Public API key value set for the specified organization API key.
id String
The provider-assigned unique ID for this managed resource.
orgId String
The organization id.
privateKey String
publicKey String
Public API key value set for the specified organization API key.
id string
The provider-assigned unique ID for this managed resource.
orgId string
The organization id.
privateKey string
publicKey string
Public API key value set for the specified organization API key.
id str
The provider-assigned unique ID for this managed resource.
org_id str
The organization id.
private_key str
public_key str
Public API key value set for the specified organization API key.
id String
The provider-assigned unique ID for this managed resource.
orgId String
The organization id.
privateKey String
publicKey String
Public API key value set for the specified organization API key.

Look up Existing Organization Resource

Get an existing Organization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OrganizationState, opts?: CustomResourceOptions): Organization
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_access_list_required: Optional[bool] = None,
        description: Optional[str] = None,
        federation_settings_id: Optional[str] = None,
        gen_ai_features_enabled: Optional[bool] = None,
        multi_factor_auth_required: Optional[bool] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        org_owner_id: Optional[str] = None,
        private_key: Optional[str] = None,
        public_key: Optional[str] = None,
        restrict_employee_access: Optional[bool] = None,
        role_names: Optional[Sequence[str]] = None) -> Organization
func GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)
public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)
public static Organization get(String name, Output<String> id, OrganizationState state, CustomResourceOptions options)
resources:  _:    type: mongodbatlas:Organization    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApiAccessListRequired bool
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
Description string
FederationSettingsId string
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
GenAiFeaturesEnabled bool
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
MultiFactorAuthRequired bool
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
Name string
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
OrgId string
The organization id.
OrgOwnerId string
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
PrivateKey string
PublicKey string
Public API key value set for the specified organization API key.
RestrictEmployeeAccess bool
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
RoleNames List<string>
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
ApiAccessListRequired bool
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
Description string
FederationSettingsId string
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
GenAiFeaturesEnabled bool
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
MultiFactorAuthRequired bool
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
Name string
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
OrgId string
The organization id.
OrgOwnerId string
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
PrivateKey string
PublicKey string
Public API key value set for the specified organization API key.
RestrictEmployeeAccess bool
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
RoleNames []string
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
apiAccessListRequired Boolean
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
description String
federationSettingsId String
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
genAiFeaturesEnabled Boolean
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
multiFactorAuthRequired Boolean
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
name String
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
orgId String
The organization id.
orgOwnerId String
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
privateKey String
publicKey String
Public API key value set for the specified organization API key.
restrictEmployeeAccess Boolean
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
roleNames List<String>
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
apiAccessListRequired boolean
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
description string
federationSettingsId string
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
genAiFeaturesEnabled boolean
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
multiFactorAuthRequired boolean
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
name string
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
orgId string
The organization id.
orgOwnerId string
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
privateKey string
publicKey string
Public API key value set for the specified organization API key.
restrictEmployeeAccess boolean
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
roleNames string[]
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
api_access_list_required bool
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
description str
federation_settings_id str
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
gen_ai_features_enabled bool
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
multi_factor_auth_required bool
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
name str
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
org_id str
The organization id.
org_owner_id str
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
private_key str
public_key str
Public API key value set for the specified organization API key.
restrict_employee_access bool
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
role_names Sequence[str]
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.
apiAccessListRequired Boolean
Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
description String
federationSettingsId String
Unique 24-hexadecimal digit string that identifies the federation to link the newly created organization to. If specified, the proposed Organization Owner of the new organization must have the Organization Owner role in an organization associated with the federation.
genAiFeaturesEnabled Boolean
Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to true. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/.
multiFactorAuthRequired Boolean
Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
name String
The name of the organization you want to create. (Cannot be changed via this Provider after creation.)
orgId String
The organization id.
orgOwnerId String
Unique 24-hexadecimal digit string that identifies the Atlas user that you want to assign the Organization Owner role. This user must be a member of the same organization as the calling API key. This is only required when authenticating with Programmatic API Keys. MongoDB Atlas Admin API - Get User By Username
privateKey String
publicKey String
Public API key value set for the specified organization API key.
restrictEmployeeAccess Boolean
Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/.
roleNames List<String>
List of Organization roles that the Programmatic API key needs to have. Ensure that you provide at least one role and ensure all roles are valid for the Organization. You must specify an array even if you are only associating a single role with the Programmatic API key. The MongoDB Documentation describes the roles that you can assign to a Programmatic API key.

Package Details

Repository
MongoDB Atlas pulumi/pulumi-mongodbatlas
License
Apache-2.0
Notes
This Pulumi package is based on the mongodbatlas Terraform Provider.