ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getMqcloudUser
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Service
Instance stringGuid  - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- Service
Instance stringGuid  - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- service
Instance StringGuid  - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- service
Instance stringGuid  - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- service_
instance_ strguid  - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- service
Instance StringGuid  - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is 
36characters. The minimum length is36characters. 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}$/. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
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.
 - Service
Instance stringGuid  - Users
List<Get
Mqcloud User User>  - (List) List of users.
- Constraints: The maximum length is 
50items. The minimum length is0items. Nested schema for users: 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- Id string
 - (String) The ID of the user which was allocated on creation, and can be used for delete calls.
 - Service
Instance stringGuid  - Users
[]Get
Mqcloud User User  - (List) List of users.
- Constraints: The maximum length is 
50items. The minimum length is0items. Nested schema for users: 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- id String
 - (String) The ID of the user which was allocated on creation, and can be used for delete calls.
 - service
Instance StringGuid  - users
List<Get
Mqcloud User User>  - (List) List of users.
- Constraints: The maximum length is 
50items. The minimum length is0items. Nested schema for users: 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- id string
 - (String) The ID of the user which was allocated on creation, and can be used for delete calls.
 - service
Instance stringGuid  - users
Get
Mqcloud User User[]  - (List) List of users.
- Constraints: The maximum length is 
50items. The minimum length is0items. Nested schema for users: 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- id str
 - (String) The ID of the user which was allocated on creation, and can be used for delete calls.
 - service_
instance_ strguid  - users
Sequence[Get
Mqcloud User User]  - (List) List of users.
- Constraints: The maximum length is 
50items. The minimum length is0items. Nested schema for users: 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- id String
 - (String) The ID of the user which was allocated on creation, and can be used for delete calls.
 - service
Instance StringGuid  - users List<Property Map>
 - (List) List of users.
- Constraints: The maximum length is 
50items. The minimum length is0items. Nested schema for users: 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
Supporting Types
GetMqcloudUserUser   
- Email string
 - (String) The email of the user.
- Constraints: The maximum length is 
253characters. The minimum length is5characters. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- Email string
 - (String) The email of the user.
- Constraints: The maximum length is 
253characters. The minimum length is5characters. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- email String
 - (String) The email of the user.
- Constraints: The maximum length is 
253characters. The minimum length is5characters. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- email string
 - (String) The email of the user.
- Constraints: The maximum length is 
253characters. The minimum length is5characters. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- email str
 - (String) The email of the user.
- Constraints: The maximum length is 
253characters. The minimum length is5characters. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
- email String
 - (String) The email of the user.
- Constraints: The maximum length is 
253characters. The minimum length is5characters. 
 - Constraints: The maximum length is 
 - 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 
12characters. The minimum length is1character. The value must match regular expression/^[a-z][-a-z0-9]*$/. 
 - Constraints: The maximum length is 
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.