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

mongodbatlas.getOrganizations

Explore with Pulumi AI

# Data Source: mongodbatlas.getOrganizations

mongodbatlas.getOrganizations describes all MongoDB Atlas Organizations. This represents organizations that have been created.

Example Usage

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

const test = mongodbatlas.getOrganizations({
    pageNum: 1,
    itemsPerPage: 5,
});
Copy
import pulumi
import pulumi_mongodbatlas as mongodbatlas

test = mongodbatlas.get_organizations(page_num=1,
    items_per_page=5)
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.LookupOrganizations(ctx, &mongodbatlas.LookupOrganizationsArgs{
			PageNum:      pulumi.IntRef(1),
			ItemsPerPage: pulumi.IntRef(5),
		}, nil)
		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 = Mongodbatlas.GetOrganizations.Invoke(new()
    {
        PageNum = 1,
        ItemsPerPage = 5,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetOrganizationsArgs;
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) {
        final var test = MongodbatlasFunctions.getOrganizations(GetOrganizationsArgs.builder()
            .pageNum(1)
            .itemsPerPage(5)
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: mongodbatlas:getOrganizations
      arguments:
        pageNum: 1
        itemsPerPage: 5
Copy

Using getOrganizations

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getOrganizations(args: GetOrganizationsArgs, opts?: InvokeOptions): Promise<GetOrganizationsResult>
function getOrganizationsOutput(args: GetOrganizationsOutputArgs, opts?: InvokeOptions): Output<GetOrganizationsResult>
Copy
def get_organizations(items_per_page: Optional[int] = None,
                      name: Optional[str] = None,
                      page_num: Optional[int] = None,
                      opts: Optional[InvokeOptions] = None) -> GetOrganizationsResult
def get_organizations_output(items_per_page: Optional[pulumi.Input[int]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      page_num: Optional[pulumi.Input[int]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationsResult]
Copy
func LookupOrganizations(ctx *Context, args *LookupOrganizationsArgs, opts ...InvokeOption) (*LookupOrganizationsResult, error)
func LookupOrganizationsOutput(ctx *Context, args *LookupOrganizationsOutputArgs, opts ...InvokeOption) LookupOrganizationsResultOutput
Copy

> Note: This function is named LookupOrganizations in the Go SDK.

public static class GetOrganizations 
{
    public static Task<GetOrganizationsResult> InvokeAsync(GetOrganizationsArgs args, InvokeOptions? opts = null)
    public static Output<GetOrganizationsResult> Invoke(GetOrganizationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
public static Output<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: mongodbatlas:index/getOrganizations:getOrganizations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ItemsPerPage int
Number of items to return per page, up to a maximum of 500. Defaults to 100.
Name string
PageNum int
The page to return. Defaults to 1.
ItemsPerPage int
Number of items to return per page, up to a maximum of 500. Defaults to 100.
Name string
PageNum int
The page to return. Defaults to 1.
itemsPerPage Integer
Number of items to return per page, up to a maximum of 500. Defaults to 100.
name String
pageNum Integer
The page to return. Defaults to 1.
itemsPerPage number
Number of items to return per page, up to a maximum of 500. Defaults to 100.
name string
pageNum number
The page to return. Defaults to 1.
items_per_page int
Number of items to return per page, up to a maximum of 500. Defaults to 100.
name str
page_num int
The page to return. Defaults to 1.
itemsPerPage Number
Number of items to return per page, up to a maximum of 500. Defaults to 100.
name String
pageNum Number
The page to return. Defaults to 1.

getOrganizations Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Results List<GetOrganizationsResult>
TotalCount int
ItemsPerPage int
Name string
PageNum int
Id string
The provider-assigned unique ID for this managed resource.
Results []GetOrganizationsResult
TotalCount int
ItemsPerPage int
Name string
PageNum int
id String
The provider-assigned unique ID for this managed resource.
results List<GetOrganizationsResult>
totalCount Integer
itemsPerPage Integer
name String
pageNum Integer
id string
The provider-assigned unique ID for this managed resource.
results GetOrganizationsResult[]
totalCount number
itemsPerPage number
name string
pageNum number
id str
The provider-assigned unique ID for this managed resource.
results Sequence[GetOrganizationsResult]
total_count int
items_per_page int
name str
page_num int
id String
The provider-assigned unique ID for this managed resource.
results List<Property Map>
totalCount Number
itemsPerPage Number
name String
pageNum Number

Supporting Types

GetOrganizationsResult

ApiAccessListRequired This property is 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.
GenAiFeaturesEnabled This property is required. 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/.

See MongoDB Atlas API - Organizations Documentation for more information.

Id This property is required. string
Autogenerated Unique ID for this data source.
IsDeleted This property is required. bool
Flag that indicates whether this organization has been deleted.
Links This property is required. List<GetOrganizationsResultLink>
MultiFactorAuthRequired This property is 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 This property is required. string
Human-readable label that identifies the organization.
RestrictEmployeeAccess This property is required. 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/.
ApiAccessListRequired This property is 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.
GenAiFeaturesEnabled This property is required. 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/.

See MongoDB Atlas API - Organizations Documentation for more information.

Id This property is required. string
Autogenerated Unique ID for this data source.
IsDeleted This property is required. bool
Flag that indicates whether this organization has been deleted.
Links This property is required. []GetOrganizationsResultLink
MultiFactorAuthRequired This property is 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 This property is required. string
Human-readable label that identifies the organization.
RestrictEmployeeAccess This property is required. 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/.
apiAccessListRequired This property is required. 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.
genAiFeaturesEnabled This property is required. 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/.

See MongoDB Atlas API - Organizations Documentation for more information.

id This property is required. String
Autogenerated Unique ID for this data source.
isDeleted This property is required. Boolean
Flag that indicates whether this organization has been deleted.
links This property is required. List<GetOrganizationsResultLink>
multiFactorAuthRequired This property is required. 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 This property is required. String
Human-readable label that identifies the organization.
restrictEmployeeAccess This property is required. 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/.
apiAccessListRequired This property is required. 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.
genAiFeaturesEnabled This property is required. 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/.

See MongoDB Atlas API - Organizations Documentation for more information.

id This property is required. string
Autogenerated Unique ID for this data source.
isDeleted This property is required. boolean
Flag that indicates whether this organization has been deleted.
links This property is required. GetOrganizationsResultLink[]
multiFactorAuthRequired This property is required. 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 This property is required. string
Human-readable label that identifies the organization.
restrictEmployeeAccess This property is required. 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/.
api_access_list_required This property is 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.
gen_ai_features_enabled This property is required. 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/.

See MongoDB Atlas API - Organizations Documentation for more information.

id This property is required. str
Autogenerated Unique ID for this data source.
is_deleted This property is required. bool
Flag that indicates whether this organization has been deleted.
links This property is required. Sequence[GetOrganizationsResultLink]
multi_factor_auth_required This property is 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 This property is required. str
Human-readable label that identifies the organization.
restrict_employee_access This property is required. 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/.
apiAccessListRequired This property is required. 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.
genAiFeaturesEnabled This property is required. 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/.

See MongoDB Atlas API - Organizations Documentation for more information.

id This property is required. String
Autogenerated Unique ID for this data source.
isDeleted This property is required. Boolean
Flag that indicates whether this organization has been deleted.
links This property is required. List<Property Map>
multiFactorAuthRequired This property is required. 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 This property is required. String
Human-readable label that identifies the organization.
restrictEmployeeAccess This property is required. 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/.
Href This property is required. string
Rel This property is required. string
Href This property is required. string
Rel This property is required. string
href This property is required. String
rel This property is required. String
href This property is required. string
rel This property is required. string
href This property is required. str
rel This property is required. str
href This property is required. String
rel This property is required. String

Package Details

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