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,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.get_organizations(page_num=1,
items_per_page=5)
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
})
}
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,
});
});
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());
}
}
variables:
test:
fn::invoke:
Function: mongodbatlas:getOrganizations
Arguments:
pageNum: 1
itemsPerPage: 5
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>
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]
func LookupOrganizations(ctx *Context, args *LookupOrganizationsArgs, opts ...InvokeOption) (*LookupOrganizationsResult, error)
func LookupOrganizationsOutput(ctx *Context, args *LookupOrganizationsOutputArgs, opts ...InvokeOption) LookupOrganizationsResultOutput
> 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)
}
public static CompletableFuture<GetOrganizationsResult> getOrganizations(GetOrganizationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getOrganizations:getOrganizations
arguments:
# arguments dictionary
The following arguments are supported:
- Items
Per intPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - Name string
- Page
Num int - The page to return. Defaults to
1
.
- Items
Per intPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - Name string
- Page
Num int - The page to return. Defaults to
1
.
- items
Per IntegerPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - name String
- page
Num Integer - The page to return. Defaults to
1
.
- items
Per numberPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - name string
- page
Num number - The page to return. Defaults to
1
.
- items_
per_ intpage - 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
.
- items
Per NumberPage - Number of items to return per page, up to a maximum of 500. Defaults to
100
. - name String
- page
Num 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<Get
Organizations Result> - Total
Count int - Items
Per intPage - Name string
- Page
Num int
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Organizations Result - Total
Count int - Items
Per intPage - Name string
- Page
Num int
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Organizations Result> - total
Count Integer - items
Per IntegerPage - name String
- page
Num Integer
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Organizations Result[] - total
Count number - items
Per numberPage - name string
- page
Num number
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Organizations Result] - total_
count int - items_
per_ intpage - name str
- page_
num int
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- total
Count Number - items
Per NumberPage - name String
- page
Num Number
Supporting Types
GetOrganizationsResult
- Api
Access boolList Required - Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
- Id string
- Autogenerated Unique ID for this data source.
- Is
Deleted bool - Flag that indicates whether this organization has been deleted.
- Links
List<Get
Organizations Result Link> - Multi
Factor boolAuth Required - 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
- Human-readable label that identifies the organization.
- Restrict
Employee boolAccess 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/.
See MongoDB Atlas API - Organizations Documentation for more information.
- Api
Access boolList Required - Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
- Id string
- Autogenerated Unique ID for this data source.
- Is
Deleted bool - Flag that indicates whether this organization has been deleted.
- Links
[]Get
Organizations Result Link - Multi
Factor boolAuth Required - 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
- Human-readable label that identifies the organization.
- Restrict
Employee boolAccess 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/.
See MongoDB Atlas API - Organizations Documentation for more information.
- api
Access BooleanList Required - Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
- id String
- Autogenerated Unique ID for this data source.
- is
Deleted Boolean - Flag that indicates whether this organization has been deleted.
- links
List<Get
Organizations Result Link> - multi
Factor BooleanAuth Required - 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
- Human-readable label that identifies the organization.
- restrict
Employee BooleanAccess 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/.
See MongoDB Atlas API - Organizations Documentation for more information.
- api
Access booleanList Required - Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
- id string
- Autogenerated Unique ID for this data source.
- is
Deleted boolean - Flag that indicates whether this organization has been deleted.
- links
Get
Organizations Result Link[] - multi
Factor booleanAuth Required - 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
- Human-readable label that identifies the organization.
- restrict
Employee booleanAccess 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/.
See MongoDB Atlas API - Organizations Documentation for more information.
- api_
access_ boollist_ required - Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
- id str
- Autogenerated Unique ID for this data source.
- is_
deleted bool - Flag that indicates whether this organization has been deleted.
- links
Sequence[Get
Organizations Result Link] - multi_
factor_ boolauth_ required - 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
- Human-readable label that identifies the organization.
- restrict_
employee_ boolaccess 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/.
See MongoDB Atlas API - Organizations Documentation for more information.
- api
Access BooleanList Required - Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
- id String
- Autogenerated Unique ID for this data source.
- is
Deleted Boolean - Flag that indicates whether this organization has been deleted.
- links List<Property Map>
- multi
Factor BooleanAuth Required - 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
- Human-readable label that identifies the organization.
- restrict
Employee BooleanAccess 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/.
See MongoDB Atlas API - Organizations Documentation for more information.
GetOrganizationsResultLink
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.