ibm.MqcloudApplication
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const mqcloudApplicationInstance = new ibm.MqcloudApplication("mqcloudApplicationInstance", {serviceInstanceGuid: _var.service_instance_guid});
import pulumi
import pulumi_ibm as ibm
mqcloud_application_instance = ibm.MqcloudApplication("mqcloudApplicationInstance", service_instance_guid=var["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.NewMqcloudApplication(ctx, "mqcloudApplicationInstance", &ibm.MqcloudApplicationArgs{
ServiceInstanceGuid: pulumi.Any(_var.Service_instance_guid),
})
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 mqcloudApplicationInstance = new Ibm.MqcloudApplication("mqcloudApplicationInstance", new()
{
ServiceInstanceGuid = @var.Service_instance_guid,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.MqcloudApplication;
import com.pulumi.ibm.MqcloudApplicationArgs;
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 mqcloudApplicationInstance = new MqcloudApplication("mqcloudApplicationInstance", MqcloudApplicationArgs.builder()
.serviceInstanceGuid(var_.service_instance_guid())
.build());
}
}
resources:
mqcloudApplicationInstance:
type: ibm:MqcloudApplication
properties:
serviceInstanceGuid: ${var.service_instance_guid}
Create MqcloudApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MqcloudApplication(name: string, args: MqcloudApplicationArgs, opts?: CustomResourceOptions);
@overload
def MqcloudApplication(resource_name: str,
args: MqcloudApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MqcloudApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
service_instance_guid: Optional[str] = None,
mqcloud_application_id: Optional[str] = None,
name: Optional[str] = None)
func NewMqcloudApplication(ctx *Context, name string, args MqcloudApplicationArgs, opts ...ResourceOption) (*MqcloudApplication, error)
public MqcloudApplication(string name, MqcloudApplicationArgs args, CustomResourceOptions? opts = null)
public MqcloudApplication(String name, MqcloudApplicationArgs args)
public MqcloudApplication(String name, MqcloudApplicationArgs args, CustomResourceOptions options)
type: ibm:MqcloudApplication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MqcloudApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MqcloudApplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MqcloudApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MqcloudApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MqcloudApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mqcloudApplicationResource = new Ibm.MqcloudApplication("mqcloudApplicationResource", new()
{
ServiceInstanceGuid = "string",
MqcloudApplicationId = "string",
Name = "string",
});
example, err := ibm.NewMqcloudApplication(ctx, "mqcloudApplicationResource", &ibm.MqcloudApplicationArgs{
ServiceInstanceGuid: pulumi.String("string"),
MqcloudApplicationId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var mqcloudApplicationResource = new MqcloudApplication("mqcloudApplicationResource", MqcloudApplicationArgs.builder()
.serviceInstanceGuid("string")
.mqcloudApplicationId("string")
.name("string")
.build());
mqcloud_application_resource = ibm.MqcloudApplication("mqcloudApplicationResource",
service_instance_guid="string",
mqcloud_application_id="string",
name="string")
const mqcloudApplicationResource = new ibm.MqcloudApplication("mqcloudApplicationResource", {
serviceInstanceGuid: "string",
mqcloudApplicationId: "string",
name: "string",
});
type: ibm:MqcloudApplication
properties:
mqcloudApplicationId: string
name: string
serviceInstanceGuid: string
MqcloudApplication Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MqcloudApplication resource accepts the following input properties:
- Service
Instance stringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Mqcloud
Application stringId - The unique identifier of the mqcloud_application.
- Name string
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- Service
Instance stringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Mqcloud
Application stringId - The unique identifier of the mqcloud_application.
- Name string
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- service
Instance StringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- mqcloud
Application StringId - The unique identifier of the mqcloud_application.
- name String
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- service
Instance stringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- mqcloud
Application stringId - The unique identifier of the mqcloud_application.
- name string
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- service_
instance_ strguid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- mqcloud_
application_ strid - The unique identifier of the mqcloud_application.
- name str
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- service
Instance StringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- mqcloud
Application StringId - The unique identifier of the mqcloud_application.
- name String
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
Outputs
All input properties are implicitly available as output properties. Additionally, the MqcloudApplication resource produces the following output properties:
- Application
Id string - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- Create
Api stringKey Uri - (String) The URI to create a new apikey for the application.
- Href string
- (String) The URL for this application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Application
Id string - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- Create
Api stringKey Uri - (String) The URI to create a new apikey for the application.
- Href string
- (String) The URL for this application.
- Id string
- The provider-assigned unique ID for this managed resource.
- application
Id String - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- create
Api StringKey Uri - (String) The URI to create a new apikey for the application.
- href String
- (String) The URL for this application.
- id String
- The provider-assigned unique ID for this managed resource.
- application
Id string - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- create
Api stringKey Uri - (String) The URI to create a new apikey for the application.
- href string
- (String) The URL for this application.
- id string
- The provider-assigned unique ID for this managed resource.
- application_
id str - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- create_
api_ strkey_ uri - (String) The URI to create a new apikey for the application.
- href str
- (String) The URL for this application.
- id str
- The provider-assigned unique ID for this managed resource.
- application
Id String - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- create
Api StringKey Uri - (String) The URI to create a new apikey for the application.
- href String
- (String) The URL for this application.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MqcloudApplication Resource
Get an existing MqcloudApplication resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MqcloudApplicationState, opts?: CustomResourceOptions): MqcloudApplication
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
create_api_key_uri: Optional[str] = None,
href: Optional[str] = None,
mqcloud_application_id: Optional[str] = None,
name: Optional[str] = None,
service_instance_guid: Optional[str] = None) -> MqcloudApplication
func GetMqcloudApplication(ctx *Context, name string, id IDInput, state *MqcloudApplicationState, opts ...ResourceOption) (*MqcloudApplication, error)
public static MqcloudApplication Get(string name, Input<string> id, MqcloudApplicationState? state, CustomResourceOptions? opts = null)
public static MqcloudApplication get(String name, Output<String> id, MqcloudApplicationState state, CustomResourceOptions options)
resources: _: type: ibm:MqcloudApplication get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Application
Id string - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- Create
Api stringKey Uri - (String) The URI to create a new apikey for the application.
- Href string
- (String) The URL for this application.
- Mqcloud
Application stringId - The unique identifier of the mqcloud_application.
- Name string
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- Service
Instance stringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Application
Id string - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- Create
Api stringKey Uri - (String) The URI to create a new apikey for the application.
- Href string
- (String) The URL for this application.
- Mqcloud
Application stringId - The unique identifier of the mqcloud_application.
- Name string
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- Service
Instance stringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- application
Id String - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- create
Api StringKey Uri - (String) The URI to create a new apikey for the application.
- href String
- (String) The URL for this application.
- mqcloud
Application StringId - The unique identifier of the mqcloud_application.
- name String
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- service
Instance StringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- application
Id string - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- create
Api stringKey Uri - (String) The URI to create a new apikey for the application.
- href string
- (String) The URL for this application.
- mqcloud
Application stringId - The unique identifier of the mqcloud_application.
- name string
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- service
Instance stringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- application_
id str - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- create_
api_ strkey_ uri - (String) The URI to create a new apikey for the application.
- href str
- (String) The URL for this application.
- mqcloud_
application_ strid - The unique identifier of the mqcloud_application.
- name str
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- service_
instance_ strguid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- application
Id String - (String) The ID of the application which was allocated on creation, and can be used for delete calls.
- create
Api StringKey Uri - (String) The URI to create a new apikey for the application.
- href String
- (String) The URL for this application.
- mqcloud
Application StringId - The unique identifier of the mqcloud_application.
- name String
- The name of the application - conforming to MQ rules.
- Constraints: The maximum length is
12
characters. The minimum length is1
character.
- Constraints: The maximum length is
- service
Instance StringGuid - The GUID that uniquely identifies the MQaaS service instance.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
Import
You can import the ibm_mqcloud_application
resource by using id
.
The id
property can be formed from service_instance_guid
, and application_id
in the following format:
<service_instance_guid>/<application_id>
service_instance_guid
: A string in the formata2b4d4bc-dadb-4637-bcec-9b7d1e723af8
. The GUID that uniquely identifies the MQaaS service instance.application_id
: A string. The ID of the application which was allocated on creation, and can be used for delete calls.
Syntax
```sh $ pulumi import ibm:index/mqcloudApplication:MqcloudApplication mqcloud_application <service_instance_guid>/<application_id> ```
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.