MongoDB Atlas v3.7.2, Mar 31 23
MongoDB Atlas v3.7.2, Mar 31 23
mongodbatlas.getFederatedSettingsOrgConfigs
Explore with Pulumi AI
mongodbatlas.getFederatedSettingsOrgConfigs
provides an Federated Settings Identity Providers datasource. Atlas Cloud Federated Settings Identity Providers provides federated settings outputs for the configured Identity Providers.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var orgConnections = new Mongodbatlas.FederatedSettingsOrgConfig("orgConnections", new()
{
FederationSettingsId = "627a9687f7f7f7f774de306f14",
OrgId = "627a9683ea7ff7f74de306f14",
DomainRestrictionEnabled = false,
DomainAllowLists = new[]
{
"mydomain.com",
},
PostAuthRoleGrants = new[]
{
"ORG_MEMBER",
},
});
var orgConfigsDs = Mongodbatlas.GetFederatedSettingsOrgConfigs.Invoke(new()
{
FederationSettingsId = orgConnections.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 {
orgConnections, err := mongodbatlas.NewFederatedSettingsOrgConfig(ctx, "orgConnections", &mongodbatlas.FederatedSettingsOrgConfigArgs{
FederationSettingsId: pulumi.String("627a9687f7f7f7f774de306f14"),
OrgId: pulumi.String("627a9683ea7ff7f74de306f14"),
DomainRestrictionEnabled: pulumi.Bool(false),
DomainAllowLists: pulumi.StringArray{
pulumi.String("mydomain.com"),
},
PostAuthRoleGrants: pulumi.StringArray{
pulumi.String("ORG_MEMBER"),
},
})
if err != nil {
return err
}
_ = mongodbatlas.LookupFederatedSettingsOrgConfigsOutput(ctx, mongodbatlas.GetFederatedSettingsOrgConfigsOutputArgs{
FederationSettingsId: orgConnections.ID(),
}, nil)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.FederatedSettingsOrgConfig;
import com.pulumi.mongodbatlas.FederatedSettingsOrgConfigArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetFederatedSettingsOrgConfigsArgs;
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 orgConnections = new FederatedSettingsOrgConfig("orgConnections", FederatedSettingsOrgConfigArgs.builder()
.federationSettingsId("627a9687f7f7f7f774de306f14")
.orgId("627a9683ea7ff7f74de306f14")
.domainRestrictionEnabled(false)
.domainAllowLists("mydomain.com")
.postAuthRoleGrants("ORG_MEMBER")
.build());
final var orgConfigsDs = MongodbatlasFunctions.getFederatedSettingsOrgConfigs(GetFederatedSettingsOrgConfigsArgs.builder()
.federationSettingsId(orgConnections.id())
.build());
}
}
import pulumi
import pulumi_mongodbatlas as mongodbatlas
org_connections = mongodbatlas.FederatedSettingsOrgConfig("orgConnections",
federation_settings_id="627a9687f7f7f7f774de306f14",
org_id="627a9683ea7ff7f74de306f14",
domain_restriction_enabled=False,
domain_allow_lists=["mydomain.com"],
post_auth_role_grants=["ORG_MEMBER"])
org_configs_ds = mongodbatlas.get_federated_settings_org_configs_output(federation_settings_id=org_connections.id)
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const orgConnections = new mongodbatlas.FederatedSettingsOrgConfig("orgConnections", {
federationSettingsId: "627a9687f7f7f7f774de306f14",
orgId: "627a9683ea7ff7f74de306f14",
domainRestrictionEnabled: false,
domainAllowLists: ["mydomain.com"],
postAuthRoleGrants: ["ORG_MEMBER"],
});
const orgConfigsDs = mongodbatlas.getFederatedSettingsOrgConfigsOutput({
federationSettingsId: orgConnections.id,
});
resources:
orgConnections:
type: mongodbatlas:FederatedSettingsOrgConfig
properties:
federationSettingsId: 627a9687f7f7f7f774de306f14
orgId: 627a9683ea7ff7f74de306f14
domainRestrictionEnabled: false
domainAllowLists:
- mydomain.com
postAuthRoleGrants:
- ORG_MEMBER
variables:
orgConfigsDs:
fn::invoke:
Function: mongodbatlas:getFederatedSettingsOrgConfigs
Arguments:
federationSettingsId: ${orgConnections.id}
Using getFederatedSettingsOrgConfigs
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 getFederatedSettingsOrgConfigs(args: GetFederatedSettingsOrgConfigsArgs, opts?: InvokeOptions): Promise<GetFederatedSettingsOrgConfigsResult>
function getFederatedSettingsOrgConfigsOutput(args: GetFederatedSettingsOrgConfigsOutputArgs, opts?: InvokeOptions): Output<GetFederatedSettingsOrgConfigsResult>
def get_federated_settings_org_configs(federation_settings_id: Optional[str] = None,
items_per_page: Optional[int] = None,
page_num: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetFederatedSettingsOrgConfigsResult
def get_federated_settings_org_configs_output(federation_settings_id: Optional[pulumi.Input[str]] = None,
items_per_page: Optional[pulumi.Input[int]] = None,
page_num: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFederatedSettingsOrgConfigsResult]
func LookupFederatedSettingsOrgConfigs(ctx *Context, args *LookupFederatedSettingsOrgConfigsArgs, opts ...InvokeOption) (*LookupFederatedSettingsOrgConfigsResult, error)
func LookupFederatedSettingsOrgConfigsOutput(ctx *Context, args *LookupFederatedSettingsOrgConfigsOutputArgs, opts ...InvokeOption) LookupFederatedSettingsOrgConfigsResultOutput
> Note: This function is named LookupFederatedSettingsOrgConfigs
in the Go SDK.
public static class GetFederatedSettingsOrgConfigs
{
public static Task<GetFederatedSettingsOrgConfigsResult> InvokeAsync(GetFederatedSettingsOrgConfigsArgs args, InvokeOptions? opts = null)
public static Output<GetFederatedSettingsOrgConfigsResult> Invoke(GetFederatedSettingsOrgConfigsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFederatedSettingsOrgConfigsResult> getFederatedSettingsOrgConfigs(GetFederatedSettingsOrgConfigsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getFederatedSettingsOrgConfigs:getFederatedSettingsOrgConfigs
arguments:
# arguments dictionary
The following arguments are supported:
- Federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- Items
Per intPage Number of items to return per page, up to a maximum of 500. Defaults to
100
.- Page
Num int The page to return. Defaults to
1
.
- Federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- Items
Per intPage Number of items to return per page, up to a maximum of 500. Defaults to
100
.- Page
Num int The page to return. Defaults to
1
.
- federation
Settings StringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- items
Per IntegerPage Number of items to return per page, up to a maximum of 500. Defaults to
100
.- page
Num Integer The page to return. Defaults to
1
.
- federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- items
Per numberPage Number of items to return per page, up to a maximum of 500. Defaults to
100
.- page
Num number The page to return. Defaults to
1
.
- federation_
settings_ strid Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- items_
per_ intpage Number of items to return per page, up to a maximum of 500. Defaults to
100
.- page_
num int The page to return. Defaults to
1
.
- federation
Settings StringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- items
Per NumberPage Number of items to return per page, up to a maximum of 500. Defaults to
100
.- page
Num Number The page to return. Defaults to
1
.
getFederatedSettingsOrgConfigs Result
The following output properties are available:
- Federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- Id string
The provider-assigned unique ID for this managed resource.
- Results
List<Get
Federated Settings Org Configs Result> Includes cloudProviderSnapshot object for each item detailed in the results array section.
- Items
Per intPage - Page
Num int
- Federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- Id string
The provider-assigned unique ID for this managed resource.
- Results
[]Get
Federated Settings Org Configs Result Includes cloudProviderSnapshot object for each item detailed in the results array section.
- Items
Per intPage - Page
Num int
- federation
Settings StringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- id String
The provider-assigned unique ID for this managed resource.
- results
List<Get
Federated Settings Org Configs Result> Includes cloudProviderSnapshot object for each item detailed in the results array section.
- items
Per IntegerPage - page
Num Integer
- federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- id string
The provider-assigned unique ID for this managed resource.
- results
Get
Federated Settings Org Configs Result[] Includes cloudProviderSnapshot object for each item detailed in the results array section.
- items
Per numberPage - page
Num number
- federation_
settings_ strid Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- id str
The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Federated Settings Org Configs Result] Includes cloudProviderSnapshot object for each item detailed in the results array section.
- items_
per_ intpage - page_
num int
- federation
Settings StringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- id String
The provider-assigned unique ID for this managed resource.
- results List<Property Map>
Includes cloudProviderSnapshot object for each item detailed in the results array section.
- items
Per NumberPage - page
Num Number
Supporting Types
GetFederatedSettingsOrgConfigsResult
- Domain
Allow List<string>Lists List that contains the approved domains from which organization users can log in.
- Domain
Restriction boolEnabled Flag that indicates whether domain restriction is enabled for the connected organization.
- Identity
Provider stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- Org
Id string Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Post
Auth List<string>Role Grants List that contains the default roles granted to users who authenticate through the IdP in a connected organization.
- Role
Mappings List<GetFederated Settings Org Configs Result Role Mapping> - User
Conflicts List<GetFederated Settings Org Configs Result User Conflict>
- Domain
Allow []stringLists List that contains the approved domains from which organization users can log in.
- Domain
Restriction boolEnabled Flag that indicates whether domain restriction is enabled for the connected organization.
- Identity
Provider stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- Org
Id string Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- Post
Auth []stringRole Grants List that contains the default roles granted to users who authenticate through the IdP in a connected organization.
- Role
Mappings []GetFederated Settings Org Configs Result Role Mapping - User
Conflicts []GetFederated Settings Org Configs Result User Conflict
- domain
Allow List<String>Lists List that contains the approved domains from which organization users can log in.
- domain
Restriction BooleanEnabled Flag that indicates whether domain restriction is enabled for the connected organization.
- identity
Provider StringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- org
Id String Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- post
Auth List<String>Role Grants List that contains the default roles granted to users who authenticate through the IdP in a connected organization.
- role
Mappings List<GetFederated Settings Org Configs Result Role Mapping> - user
Conflicts List<GetFederated Settings Org Configs Result User Conflict>
- domain
Allow string[]Lists List that contains the approved domains from which organization users can log in.
- domain
Restriction booleanEnabled Flag that indicates whether domain restriction is enabled for the connected organization.
- identity
Provider stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- org
Id string Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- post
Auth string[]Role Grants List that contains the default roles granted to users who authenticate through the IdP in a connected organization.
- role
Mappings GetFederated Settings Org Configs Result Role Mapping[] - user
Conflicts GetFederated Settings Org Configs Result User Conflict[]
- domain_
allow_ Sequence[str]lists List that contains the approved domains from which organization users can log in.
- domain_
restriction_ boolenabled Flag that indicates whether domain restriction is enabled for the connected organization.
- identity_
provider_ strid Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- org_
id str Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- post_
auth_ Sequence[str]role_ grants List that contains the default roles granted to users who authenticate through the IdP in a connected organization.
- role_
mappings Sequence[GetFederated Settings Org Configs Result Role Mapping] - user_
conflicts Sequence[GetFederated Settings Org Configs Result User Conflict]
- domain
Allow List<String>Lists List that contains the approved domains from which organization users can log in.
- domain
Restriction BooleanEnabled Flag that indicates whether domain restriction is enabled for the connected organization.
- identity
Provider StringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- org
Id String Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
- post
Auth List<String>Role Grants List that contains the default roles granted to users who authenticate through the IdP in a connected organization.
- role
Mappings List<Property Map> - user
Conflicts List<Property Map>
GetFederatedSettingsOrgConfigsResultRoleMapping
- External
Group stringName Unique human-readable label that identifies the identity provider group to which this role mapping applies.
- Id string
Unique 24-hexadecimal digit string that identifies this role mapping.
- Role
Assignments List<GetFederated Settings Org Configs Result Role Mapping Role Assignment> Atlas roles and the unique identifiers of the groups and organizations associated with each role.
- External
Group stringName Unique human-readable label that identifies the identity provider group to which this role mapping applies.
- Id string
Unique 24-hexadecimal digit string that identifies this role mapping.
- Role
Assignments []GetFederated Settings Org Configs Result Role Mapping Role Assignment Atlas roles and the unique identifiers of the groups and organizations associated with each role.
- external
Group StringName Unique human-readable label that identifies the identity provider group to which this role mapping applies.
- id String
Unique 24-hexadecimal digit string that identifies this role mapping.
- role
Assignments List<GetFederated Settings Org Configs Result Role Mapping Role Assignment> Atlas roles and the unique identifiers of the groups and organizations associated with each role.
- external
Group stringName Unique human-readable label that identifies the identity provider group to which this role mapping applies.
- id string
Unique 24-hexadecimal digit string that identifies this role mapping.
- role
Assignments GetFederated Settings Org Configs Result Role Mapping Role Assignment[] Atlas roles and the unique identifiers of the groups and organizations associated with each role.
- external_
group_ strname Unique human-readable label that identifies the identity provider group to which this role mapping applies.
- id str
Unique 24-hexadecimal digit string that identifies this role mapping.
- role_
assignments Sequence[GetFederated Settings Org Configs Result Role Mapping Role Assignment] Atlas roles and the unique identifiers of the groups and organizations associated with each role.
- external
Group StringName Unique human-readable label that identifies the identity provider group to which this role mapping applies.
- id String
Unique 24-hexadecimal digit string that identifies this role mapping.
- role
Assignments List<Property Map> Atlas roles and the unique identifiers of the groups and organizations associated with each role.
GetFederatedSettingsOrgConfigsResultRoleMappingRoleAssignment
GetFederatedSettingsOrgConfigsResultUserConflict
- Email
Address string Email address of the the user that conflicts with selected domains.
- Federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- First
Name string First name of the the user that conflicts with selected domains.
- Last
Name string Last name of the the user that conflicts with selected domains.
- User
Id string Name of the Atlas user that conflicts with selected domains.
- Email
Address string Email address of the the user that conflicts with selected domains.
- Federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- First
Name string First name of the the user that conflicts with selected domains.
- Last
Name string Last name of the the user that conflicts with selected domains.
- User
Id string Name of the Atlas user that conflicts with selected domains.
- email
Address String Email address of the the user that conflicts with selected domains.
- federation
Settings StringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- first
Name String First name of the the user that conflicts with selected domains.
- last
Name String Last name of the the user that conflicts with selected domains.
- user
Id String Name of the Atlas user that conflicts with selected domains.
- email
Address string Email address of the the user that conflicts with selected domains.
- federation
Settings stringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- first
Name string First name of the the user that conflicts with selected domains.
- last
Name string Last name of the the user that conflicts with selected domains.
- user
Id string Name of the Atlas user that conflicts with selected domains.
- email_
address str Email address of the the user that conflicts with selected domains.
- federation_
settings_ strid Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- first_
name str First name of the the user that conflicts with selected domains.
- last_
name str Last name of the the user that conflicts with selected domains.
- user_
id str Name of the Atlas user that conflicts with selected domains.
- email
Address String Email address of the the user that conflicts with selected domains.
- federation
Settings StringId Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
- first
Name String First name of the the user that conflicts with selected domains.
- last
Name String Last name of the the user that conflicts with selected domains.
- user
Id String Name of the Atlas user that conflicts with selected domains.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.