1. Packages
  2. stackit
  3. API Docs
  4. getMongodbflexUser
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    MongoDB Flex user data source schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_mongodbflex_user" "example" {
      project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      user_id     = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getMongodbflexUser

    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 getMongodbflexUser(args: GetMongodbflexUserArgs, opts?: InvokeOptions): Promise<GetMongodbflexUserResult>
    function getMongodbflexUserOutput(args: GetMongodbflexUserOutputArgs, opts?: InvokeOptions): Output<GetMongodbflexUserResult>
    def get_mongodbflex_user(instance_id: Optional[str] = None,
                             project_id: Optional[str] = None,
                             region: Optional[str] = None,
                             user_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetMongodbflexUserResult
    def get_mongodbflex_user_output(instance_id: Optional[pulumi.Input[str]] = None,
                             project_id: Optional[pulumi.Input[str]] = None,
                             region: Optional[pulumi.Input[str]] = None,
                             user_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetMongodbflexUserResult]
    func LookupMongodbflexUser(ctx *Context, args *LookupMongodbflexUserArgs, opts ...InvokeOption) (*LookupMongodbflexUserResult, error)
    func LookupMongodbflexUserOutput(ctx *Context, args *LookupMongodbflexUserOutputArgs, opts ...InvokeOption) LookupMongodbflexUserResultOutput

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

    public static class GetMongodbflexUser 
    {
        public static Task<GetMongodbflexUserResult> InvokeAsync(GetMongodbflexUserArgs args, InvokeOptions? opts = null)
        public static Output<GetMongodbflexUserResult> Invoke(GetMongodbflexUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMongodbflexUserResult> getMongodbflexUser(GetMongodbflexUserArgs args, InvokeOptions options)
    public static Output<GetMongodbflexUserResult> getMongodbflexUser(GetMongodbflexUserArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getMongodbflexUser:getMongodbflexUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    ID of the MongoDB Flex instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    UserId string
    User ID.
    Region string
    The resource region. If not defined, the provider region is used.
    InstanceId string
    ID of the MongoDB Flex instance.
    ProjectId string
    STACKIT project ID to which the instance is associated.
    UserId string
    User ID.
    Region string
    The resource region. If not defined, the provider region is used.
    instanceId String
    ID of the MongoDB Flex instance.
    projectId String
    STACKIT project ID to which the instance is associated.
    userId String
    User ID.
    region String
    The resource region. If not defined, the provider region is used.
    instanceId string
    ID of the MongoDB Flex instance.
    projectId string
    STACKIT project ID to which the instance is associated.
    userId string
    User ID.
    region string
    The resource region. If not defined, the provider region is used.
    instance_id str
    ID of the MongoDB Flex instance.
    project_id str
    STACKIT project ID to which the instance is associated.
    user_id str
    User ID.
    region str
    The resource region. If not defined, the provider region is used.
    instanceId String
    ID of the MongoDB Flex instance.
    projectId String
    STACKIT project ID to which the instance is associated.
    userId String
    User ID.
    region String
    The resource region. If not defined, the provider region is used.

    getMongodbflexUser Result

    The following output properties are available:

    Database string
    Host string
    Id string
    InstanceId string
    ID of the MongoDB Flex instance.
    Port int
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Roles List<string>
    UserId string
    User ID.
    Username string
    Database string
    Host string
    Id string
    InstanceId string
    ID of the MongoDB Flex instance.
    Port int
    ProjectId string
    STACKIT project ID to which the instance is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    Roles []string
    UserId string
    User ID.
    Username string
    database String
    host String
    id String
    instanceId String
    ID of the MongoDB Flex instance.
    port Integer
    projectId String
    STACKIT project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.
    roles List<String>
    userId String
    User ID.
    username String
    database string
    host string
    id string
    instanceId string
    ID of the MongoDB Flex instance.
    port number
    projectId string
    STACKIT project ID to which the instance is associated.
    region string
    The resource region. If not defined, the provider region is used.
    roles string[]
    userId string
    User ID.
    username string
    database str
    host str
    id str
    instance_id str
    ID of the MongoDB Flex instance.
    port int
    project_id str
    STACKIT project ID to which the instance is associated.
    region str
    The resource region. If not defined, the provider region is used.
    roles Sequence[str]
    user_id str
    User ID.
    username str
    database String
    host String
    id String
    instanceId String
    ID of the MongoDB Flex instance.
    port Number
    projectId String
    STACKIT project ID to which the instance is associated.
    region String
    The resource region. If not defined, the provider region is used.
    roles List<String>
    userId String
    User ID.
    username String

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.