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

ibm.getMqcloudApplication

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 mqcloudApplication = ibm.getMqcloudApplication({
        name: ibm_mqcloud_application.mqcloud_application_instance.name,
        serviceInstanceGuid: ibm_mqcloud_application.mqcloud_application_instance.service_instance_guid,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    mqcloud_application = ibm.get_mqcloud_application(name=ibm_mqcloud_application["mqcloud_application_instance"]["name"],
        service_instance_guid=ibm_mqcloud_application["mqcloud_application_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.LookupMqcloudApplication(ctx, &ibm.LookupMqcloudApplicationArgs{
    			Name:                pulumi.StringRef(ibm_mqcloud_application.Mqcloud_application_instance.Name),
    			ServiceInstanceGuid: ibm_mqcloud_application.Mqcloud_application_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 mqcloudApplication = Ibm.GetMqcloudApplication.Invoke(new()
        {
            Name = ibm_mqcloud_application.Mqcloud_application_instance.Name,
            ServiceInstanceGuid = ibm_mqcloud_application.Mqcloud_application_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.GetMqcloudApplicationArgs;
    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 mqcloudApplication = IbmFunctions.getMqcloudApplication(GetMqcloudApplicationArgs.builder()
                .name(ibm_mqcloud_application.mqcloud_application_instance().name())
                .serviceInstanceGuid(ibm_mqcloud_application.mqcloud_application_instance().service_instance_guid())
                .build());
    
        }
    }
    
    variables:
      mqcloudApplication:
        fn::invoke:
          function: ibm:getMqcloudApplication
          arguments:
            name: ${ibm_mqcloud_application.mqcloud_application_instance.name}
            serviceInstanceGuid: ${ibm_mqcloud_application.mqcloud_application_instance.service_instance_guid}
    

    Using getMqcloudApplication

    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 getMqcloudApplication(args: GetMqcloudApplicationArgs, opts?: InvokeOptions): Promise<GetMqcloudApplicationResult>
    function getMqcloudApplicationOutput(args: GetMqcloudApplicationOutputArgs, opts?: InvokeOptions): Output<GetMqcloudApplicationResult>
    def get_mqcloud_application(id: Optional[str] = None,
                                name: Optional[str] = None,
                                service_instance_guid: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetMqcloudApplicationResult
    def get_mqcloud_application_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[GetMqcloudApplicationResult]
    func LookupMqcloudApplication(ctx *Context, args *LookupMqcloudApplicationArgs, opts ...InvokeOption) (*LookupMqcloudApplicationResult, error)
    func LookupMqcloudApplicationOutput(ctx *Context, args *LookupMqcloudApplicationOutputArgs, opts ...InvokeOption) LookupMqcloudApplicationResultOutput

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

    public static class GetMqcloudApplication 
    {
        public static Task<GetMqcloudApplicationResult> InvokeAsync(GetMqcloudApplicationArgs args, InvokeOptions? opts = null)
        public static Output<GetMqcloudApplicationResult> Invoke(GetMqcloudApplicationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMqcloudApplicationResult> getMqcloudApplication(GetMqcloudApplicationArgs args, InvokeOptions options)
    public static Output<GetMqcloudApplicationResult> getMqcloudApplication(GetMqcloudApplicationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getMqcloudApplication:getMqcloudApplication
      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 application which was allocated on creation, and can be used for delete calls.
    Name string
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    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 application which was allocated on creation, and can be used for delete calls.
    Name string
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    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 application which was allocated on creation, and can be used for delete calls.
    name String
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    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 application which was allocated on creation, and can be used for delete calls.
    name string
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    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 application which was allocated on creation, and can be used for delete calls.
    name str
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    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 application which was allocated on creation, and can be used for delete calls.
    name String
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.

    getMqcloudApplication Result

    The following output properties are available:

    Applications List<GetMqcloudApplicationApplication>
    (List) List of applications.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for applications:
    Id string
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    ServiceInstanceGuid string
    Name string
    (String) The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    Applications []GetMqcloudApplicationApplication
    (List) List of applications.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for applications:
    Id string
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    ServiceInstanceGuid string
    Name string
    (String) The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    applications List<GetMqcloudApplicationApplication>
    (List) List of applications.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for applications:
    id String
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    serviceInstanceGuid String
    name String
    (String) The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    applications GetMqcloudApplicationApplication[]
    (List) List of applications.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for applications:
    id string
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    serviceInstanceGuid string
    name string
    (String) The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    applications Sequence[GetMqcloudApplicationApplication]
    (List) List of applications.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for applications:
    id str
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    service_instance_guid str
    name str
    (String) The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    applications List<Property Map>
    (List) List of applications.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for applications:
    id String
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    serviceInstanceGuid String
    name String
    (String) The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.

    Supporting Types

    GetMqcloudApplicationApplication

    CreateApiKeyUri string
    (String) The URI to create a new apikey for the application.
    Href string
    (String) The URL for this application.
    Id string
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    Name string
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    CreateApiKeyUri string
    (String) The URI to create a new apikey for the application.
    Href string
    (String) The URL for this application.
    Id string
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    Name string
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    createApiKeyUri String
    (String) The URI to create a new apikey for the application.
    href String
    (String) The URL for this application.
    id String
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    name String
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    createApiKeyUri string
    (String) The URI to create a new apikey for the application.
    href string
    (String) The URL for this application.
    id string
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    name string
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    create_api_key_uri str
    (String) The URI to create a new apikey for the application.
    href str
    (String) The URL for this application.
    id str
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    name str
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.
    createApiKeyUri String
    (String) The URI to create a new apikey for the application.
    href String
    (String) The URL for this application.
    id String
    (String) The ID of the application which was allocated on creation, and can be used for delete calls.
    name String
    The name of the application - conforming to MQ rules.

    • Constraints: The maximum length is 12 characters. The minimum length is 1 character.

    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