1. Packages
  2. Ibm Provider
  3. API Docs
  4. getMqcloudUser
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getMqcloudUser

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const mqcloudUser = ibm.getMqcloudUser({
        name: ibm_mqcloud_user.mqcloud_user_instance.name,
        serviceInstanceGuid: ibm_mqcloud_user.mqcloud_user_instance.service_instance_guid,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    mqcloud_user = ibm.get_mqcloud_user(name=ibm_mqcloud_user["mqcloud_user_instance"]["name"],
        service_instance_guid=ibm_mqcloud_user["mqcloud_user_instance"]["service_instance_guid"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.LookupMqcloudUser(ctx, &ibm.LookupMqcloudUserArgs{
    			Name:                pulumi.StringRef(ibm_mqcloud_user.Mqcloud_user_instance.Name),
    			ServiceInstanceGuid: ibm_mqcloud_user.Mqcloud_user_instance.Service_instance_guid,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var mqcloudUser = Ibm.GetMqcloudUser.Invoke(new()
        {
            Name = ibm_mqcloud_user.Mqcloud_user_instance.Name,
            ServiceInstanceGuid = ibm_mqcloud_user.Mqcloud_user_instance.Service_instance_guid,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetMqcloudUserArgs;
    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 mqcloudUser = IbmFunctions.getMqcloudUser(GetMqcloudUserArgs.builder()
                .name(ibm_mqcloud_user.mqcloud_user_instance().name())
                .serviceInstanceGuid(ibm_mqcloud_user.mqcloud_user_instance().service_instance_guid())
                .build());
    
        }
    }
    
    variables:
      mqcloudUser:
        fn::invoke:
          function: ibm:getMqcloudUser
          arguments:
            name: ${ibm_mqcloud_user.mqcloud_user_instance.name}
            serviceInstanceGuid: ${ibm_mqcloud_user.mqcloud_user_instance.service_instance_guid}
    

    Using getMqcloudUser

    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 getMqcloudUser(args: GetMqcloudUserArgs, opts?: InvokeOptions): Promise<GetMqcloudUserResult>
    function getMqcloudUserOutput(args: GetMqcloudUserOutputArgs, opts?: InvokeOptions): Output<GetMqcloudUserResult>
    def get_mqcloud_user(id: Optional[str] = None,
                         name: Optional[str] = None,
                         service_instance_guid: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetMqcloudUserResult
    def get_mqcloud_user_output(id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         service_instance_guid: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetMqcloudUserResult]
    func LookupMqcloudUser(ctx *Context, args *LookupMqcloudUserArgs, opts ...InvokeOption) (*LookupMqcloudUserResult, error)
    func LookupMqcloudUserOutput(ctx *Context, args *LookupMqcloudUserOutputArgs, opts ...InvokeOption) LookupMqcloudUserResultOutput

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

    public static class GetMqcloudUser 
    {
        public static Task<GetMqcloudUserResult> InvokeAsync(GetMqcloudUserArgs args, InvokeOptions? opts = null)
        public static Output<GetMqcloudUserResult> Invoke(GetMqcloudUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMqcloudUserResult> getMqcloudUser(GetMqcloudUserArgs args, InvokeOptions options)
    public static Output<GetMqcloudUserResult> getMqcloudUser(GetMqcloudUserArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getMqcloudUser:getMqcloudUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceInstanceGuid string
    The GUID that uniquely identifies the MQaaS service instance.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    Id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    Name string
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    ServiceInstanceGuid string
    The GUID that uniquely identifies the MQaaS service instance.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    Id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    Name string
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    serviceInstanceGuid String
    The GUID that uniquely identifies the MQaaS service instance.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    id String
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    name String
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    serviceInstanceGuid string
    The GUID that uniquely identifies the MQaaS service instance.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    name string
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    service_instance_guid str
    The GUID that uniquely identifies the MQaaS service instance.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    id str
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    name str
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    serviceInstanceGuid String
    The GUID that uniquely identifies the MQaaS service instance.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.
    id String
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    name String
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.

    getMqcloudUser Result

    The following output properties are available:

    Id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    ServiceInstanceGuid string
    Users List<GetMqcloudUserUser>
    (List) List of users.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for users:
    Name string
    (String) The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    Id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    ServiceInstanceGuid string
    Users []GetMqcloudUserUser
    (List) List of users.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for users:
    Name string
    (String) The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    id String
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    serviceInstanceGuid String
    users List<GetMqcloudUserUser>
    (List) List of users.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for users:
    name String
    (String) The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    serviceInstanceGuid string
    users GetMqcloudUserUser[]
    (List) List of users.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for users:
    name string
    (String) The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    id str
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    service_instance_guid str
    users Sequence[GetMqcloudUserUser]
    (List) List of users.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for users:
    name str
    (String) The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    id String
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    serviceInstanceGuid String
    users List<Property Map>
    (List) List of users.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for users:
    name String
    (String) The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.

    Supporting Types

    GetMqcloudUserUser

    Email string
    (String) The email of the user.

    • Constraints: The maximum length is 253 characters. The minimum length is 5 characters.
    Href string
    (String) The URL for the user details.
    Id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    Name string
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    Email string
    (String) The email of the user.

    • Constraints: The maximum length is 253 characters. The minimum length is 5 characters.
    Href string
    (String) The URL for the user details.
    Id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    Name string
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    email String
    (String) The email of the user.

    • Constraints: The maximum length is 253 characters. The minimum length is 5 characters.
    href String
    (String) The URL for the user details.
    id String
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    name String
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    email string
    (String) The email of the user.

    • Constraints: The maximum length is 253 characters. The minimum length is 5 characters.
    href string
    (String) The URL for the user details.
    id string
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    name string
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    email str
    (String) The email of the user.

    • Constraints: The maximum length is 253 characters. The minimum length is 5 characters.
    href str
    (String) The URL for the user details.
    id str
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    name str
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.
    email String
    (String) The email of the user.

    • Constraints: The maximum length is 253 characters. The minimum length is 5 characters.
    href String
    (String) The URL for the user details.
    id String
    (String) The ID of the user which was allocated on creation, and can be used for delete calls.
    name String
    The shortname of the user that will be used as the IBM MQ administrator in interactions with a queue manager for this service instance.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character. The value must match regular expression /^[a-z][-a-z0-9]*$/.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud