MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi
mongodbatlas.getOrganization
Explore with Pulumi AI
# Data Source: mongodbatlas.Organization
mongodbatlas.Organization
describes all MongoDB Atlas Organizations. This represents organizations that have been created.
Example Usage
Using project_id attribute to query
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = mongodbatlas.getOrganization({
orgId: "<org_id>",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.get_organization(org_id="<org_id>")
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.LookupOrganization(ctx, &mongodbatlas.LookupOrganizationArgs{
OrgId: "<org_id>",
}, 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.GetOrganization.Invoke(new()
{
OrgId = "<org_id>",
});
});
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.GetOrganizationArgs;
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.getOrganization(GetOrganizationArgs.builder()
.orgId("<org_id>")
.build());
}
}
variables:
test:
fn::invoke:
Function: mongodbatlas:getOrganization
Arguments:
orgId: <org_id>
Using getOrganization
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 getOrganization(args: GetOrganizationArgs, opts?: InvokeOptions): Promise<GetOrganizationResult>
function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: InvokeOptions): Output<GetOrganizationResult>
def get_organization(org_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrganizationResult
def get_organization_output(org_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationResult]
func LookupOrganization(ctx *Context, args *LookupOrganizationArgs, opts ...InvokeOption) (*LookupOrganizationResult, error)
func LookupOrganizationOutput(ctx *Context, args *LookupOrganizationOutputArgs, opts ...InvokeOption) LookupOrganizationResultOutput
> Note: This function is named LookupOrganization
in the Go SDK.
public static class GetOrganization
{
public static Task<GetOrganizationResult> InvokeAsync(GetOrganizationArgs args, InvokeOptions? opts = null)
public static Output<GetOrganizationResult> Invoke(GetOrganizationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOrganizationResult> getOrganization(GetOrganizationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getOrganization:getOrganization
arguments:
# arguments dictionary
The following arguments are supported:
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization.
- Org
Id string - Unique 24-hexadecimal digit string that identifies the organization.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization.
- org
Id string - Unique 24-hexadecimal digit string that identifies the organization.
- org_
id str - Unique 24-hexadecimal digit string that identifies the organization.
- org
Id String - Unique 24-hexadecimal digit string that identifies the organization.
getOrganization Result
The following output properties are available:
- Api
Access boolList Required - (Optional) 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
- The provider-assigned unique ID for this managed resource.
- Is
Deleted bool - Flag that indicates whether this organization has been deleted.
- Links
List<Get
Organization Link> - Multi
Factor boolAuth Required - (Optional) 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.
- Org
Id string - Restrict
Employee boolAccess - (Optional) 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 boolList Required - (Optional) 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
- The provider-assigned unique ID for this managed resource.
- Is
Deleted bool - Flag that indicates whether this organization has been deleted.
- Links
[]Get
Organization Link - Multi
Factor boolAuth Required - (Optional) 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.
- Org
Id string - Restrict
Employee boolAccess - (Optional) 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 BooleanList Required - (Optional) 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
- The provider-assigned unique ID for this managed resource.
- is
Deleted Boolean - Flag that indicates whether this organization has been deleted.
- links
List<Get
Organization Link> - multi
Factor BooleanAuth Required - (Optional) 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.
- org
Id String - restrict
Employee BooleanAccess - (Optional) 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 booleanList Required - (Optional) 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
- The provider-assigned unique ID for this managed resource.
- is
Deleted boolean - Flag that indicates whether this organization has been deleted.
- links
Get
Organization Link[] - multi
Factor booleanAuth Required - (Optional) 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.
- org
Id string - restrict
Employee booleanAccess - (Optional) 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_ boollist_ required - (Optional) 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
- The provider-assigned unique ID for this managed resource.
- is_
deleted bool - Flag that indicates whether this organization has been deleted.
- links
Sequence[Get
Organization Link] - multi_
factor_ boolauth_ required - (Optional) 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.
- org_
id str - restrict_
employee_ boolaccess - (Optional) 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 BooleanList Required - (Optional) 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
- The provider-assigned unique ID for this managed resource.
- is
Deleted Boolean - Flag that indicates whether this organization has been deleted.
- links List<Property Map>
- multi
Factor BooleanAuth Required - (Optional) 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.
- org
Id String - restrict
Employee BooleanAccess - (Optional) 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/.
Supporting Types
GetOrganizationLink
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.