1. Packages
  2. Ibm Provider
  3. API Docs
  4. MqcloudKeystoreCertificate
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.MqcloudKeystoreCertificate

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as ibm from "@pulumi/ibm";

const mqcloudKeystoreCertificateInstance = new ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateInstance", {
    certificateFile: fs.readFileSync("certificate_file.data", { encoding: "base64" }),
    label: "certlabel",
    queueManagerId: _var.queue_manager_id,
    serviceInstanceGuid: _var.service_instance_guid,
    configs: [{
        ams: [{
            channels: [{
                name: "CLOUD.APP.SVRCONN",
            }],
        }],
    }],
});
Copy
import pulumi
import base64
import pulumi_ibm as ibm

mqcloud_keystore_certificate_instance = ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateInstance",
    certificate_file=(lambda path: base64.b64encode(open(path).read().encode()).decode())("certificate_file.data"),
    label="certlabel",
    queue_manager_id=var["queue_manager_id"],
    service_instance_guid=var["service_instance_guid"],
    configs=[{
        "ams": [{
            "channels": [{
                "name": "CLOUD.APP.SVRCONN",
            }],
        }],
    }])
Copy
package main

import (
	"encoding/base64"
	"os"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func filebase64OrPanic(path string) string {
	if fileData, err := os.ReadFile(path); err == nil {
		return base64.StdEncoding.EncodeToString(fileData[:])
	} else {
		panic(err.Error())
	}
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewMqcloudKeystoreCertificate(ctx, "mqcloudKeystoreCertificateInstance", &ibm.MqcloudKeystoreCertificateArgs{
			CertificateFile:     pulumi.String(filebase64OrPanic("certificate_file.data")),
			Label:               pulumi.String("certlabel"),
			QueueManagerId:      pulumi.Any(_var.Queue_manager_id),
			ServiceInstanceGuid: pulumi.Any(_var.Service_instance_guid),
			Configs: ibm.MqcloudKeystoreCertificateConfigArray{
				&ibm.MqcloudKeystoreCertificateConfigArgs{
					Ams: ibm.MqcloudKeystoreCertificateConfigAmArray{
						&ibm.MqcloudKeystoreCertificateConfigAmArgs{
							Channels: ibm.MqcloudKeystoreCertificateConfigAmChannelArray{
								&ibm.MqcloudKeystoreCertificateConfigAmChannelArgs{
									Name: pulumi.String("CLOUD.APP.SVRCONN"),
								},
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

	
string ReadFileBase64(string path) 
{
    return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)));
}

return await Deployment.RunAsync(() => 
{
    var mqcloudKeystoreCertificateInstance = new Ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateInstance", new()
    {
        CertificateFile = ReadFileBase64("certificate_file.data"),
        Label = "certlabel",
        QueueManagerId = @var.Queue_manager_id,
        ServiceInstanceGuid = @var.Service_instance_guid,
        Configs = new[]
        {
            new Ibm.Inputs.MqcloudKeystoreCertificateConfigArgs
            {
                Ams = new[]
                {
                    new Ibm.Inputs.MqcloudKeystoreCertificateConfigAmArgs
                    {
                        Channels = new[]
                        {
                            new Ibm.Inputs.MqcloudKeystoreCertificateConfigAmChannelArgs
                            {
                                Name = "CLOUD.APP.SVRCONN",
                            },
                        },
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.MqcloudKeystoreCertificate;
import com.pulumi.ibm.MqcloudKeystoreCertificateArgs;
import com.pulumi.ibm.inputs.MqcloudKeystoreCertificateConfigArgs;
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 mqcloudKeystoreCertificateInstance = new MqcloudKeystoreCertificate("mqcloudKeystoreCertificateInstance", MqcloudKeystoreCertificateArgs.builder()
            .certificateFile(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("certificate_file.data"))))
            .label("certlabel")
            .queueManagerId(var_.queue_manager_id())
            .serviceInstanceGuid(var_.service_instance_guid())
            .configs(MqcloudKeystoreCertificateConfigArgs.builder()
                .ams(MqcloudKeystoreCertificateConfigAmArgs.builder()
                    .channels(MqcloudKeystoreCertificateConfigAmChannelArgs.builder()
                        .name("CLOUD.APP.SVRCONN")
                        .build())
                    .build())
                .build())
            .build());

    }
}
Copy
Coming soon!

Create MqcloudKeystoreCertificate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new MqcloudKeystoreCertificate(name: string, args: MqcloudKeystoreCertificateArgs, opts?: CustomResourceOptions);
@overload
def MqcloudKeystoreCertificate(resource_name: str,
                               args: MqcloudKeystoreCertificateArgs,
                               opts: Optional[ResourceOptions] = None)

@overload
def MqcloudKeystoreCertificate(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               certificate_file: Optional[str] = None,
                               label: Optional[str] = None,
                               queue_manager_id: Optional[str] = None,
                               service_instance_guid: Optional[str] = None,
                               configs: Optional[Sequence[MqcloudKeystoreCertificateConfigArgs]] = None,
                               mqcloud_keystore_certificate_id: Optional[str] = None)
func NewMqcloudKeystoreCertificate(ctx *Context, name string, args MqcloudKeystoreCertificateArgs, opts ...ResourceOption) (*MqcloudKeystoreCertificate, error)
public MqcloudKeystoreCertificate(string name, MqcloudKeystoreCertificateArgs args, CustomResourceOptions? opts = null)
public MqcloudKeystoreCertificate(String name, MqcloudKeystoreCertificateArgs args)
public MqcloudKeystoreCertificate(String name, MqcloudKeystoreCertificateArgs args, CustomResourceOptions options)
type: ibm:MqcloudKeystoreCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MqcloudKeystoreCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MqcloudKeystoreCertificateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MqcloudKeystoreCertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MqcloudKeystoreCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MqcloudKeystoreCertificateArgs
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 mqcloudKeystoreCertificateResource = new Ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateResource", new()
{
    CertificateFile = "string",
    Label = "string",
    QueueManagerId = "string",
    ServiceInstanceGuid = "string",
    Configs = new[]
    {
        new Ibm.Inputs.MqcloudKeystoreCertificateConfigArgs
        {
            Ams = new[]
            {
                new Ibm.Inputs.MqcloudKeystoreCertificateConfigAmArgs
                {
                    Channels = new[]
                    {
                        new Ibm.Inputs.MqcloudKeystoreCertificateConfigAmChannelArgs
                        {
                            Name = "string",
                        },
                    },
                },
            },
        },
    },
    MqcloudKeystoreCertificateId = "string",
});
Copy
example, err := ibm.NewMqcloudKeystoreCertificate(ctx, "mqcloudKeystoreCertificateResource", &ibm.MqcloudKeystoreCertificateArgs{
	CertificateFile:     pulumi.String("string"),
	Label:               pulumi.String("string"),
	QueueManagerId:      pulumi.String("string"),
	ServiceInstanceGuid: pulumi.String("string"),
	Configs: ibm.MqcloudKeystoreCertificateConfigArray{
		&ibm.MqcloudKeystoreCertificateConfigArgs{
			Ams: ibm.MqcloudKeystoreCertificateConfigAmArray{
				&ibm.MqcloudKeystoreCertificateConfigAmArgs{
					Channels: ibm.MqcloudKeystoreCertificateConfigAmChannelArray{
						&ibm.MqcloudKeystoreCertificateConfigAmChannelArgs{
							Name: pulumi.String("string"),
						},
					},
				},
			},
		},
	},
	MqcloudKeystoreCertificateId: pulumi.String("string"),
})
Copy
var mqcloudKeystoreCertificateResource = new MqcloudKeystoreCertificate("mqcloudKeystoreCertificateResource", MqcloudKeystoreCertificateArgs.builder()
    .certificateFile("string")
    .label("string")
    .queueManagerId("string")
    .serviceInstanceGuid("string")
    .configs(MqcloudKeystoreCertificateConfigArgs.builder()
        .ams(MqcloudKeystoreCertificateConfigAmArgs.builder()
            .channels(MqcloudKeystoreCertificateConfigAmChannelArgs.builder()
                .name("string")
                .build())
            .build())
        .build())
    .mqcloudKeystoreCertificateId("string")
    .build());
Copy
mqcloud_keystore_certificate_resource = ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateResource",
    certificate_file="string",
    label="string",
    queue_manager_id="string",
    service_instance_guid="string",
    configs=[{
        "ams": [{
            "channels": [{
                "name": "string",
            }],
        }],
    }],
    mqcloud_keystore_certificate_id="string")
Copy
const mqcloudKeystoreCertificateResource = new ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateResource", {
    certificateFile: "string",
    label: "string",
    queueManagerId: "string",
    serviceInstanceGuid: "string",
    configs: [{
        ams: [{
            channels: [{
                name: "string",
            }],
        }],
    }],
    mqcloudKeystoreCertificateId: "string",
});
Copy
type: ibm:MqcloudKeystoreCertificate
properties:
    certificateFile: string
    configs:
        - ams:
            - channels:
                - name: string
    label: string
    mqcloudKeystoreCertificateId: string
    queueManagerId: string
    serviceInstanceGuid: string
Copy

MqcloudKeystoreCertificate 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 MqcloudKeystoreCertificate resource accepts the following input properties:

CertificateFile This property is required. string
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
Label This property is required. string
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
QueueManagerId This property is required. string
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
ServiceInstanceGuid This property is required. 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}$/.
Configs List<MqcloudKeystoreCertificateConfig>
(List) The configuration details for this certificate. Nested schema for config:
MqcloudKeystoreCertificateId string
The unique identifier of the mqcloud_keystore_certificate.
CertificateFile This property is required. string
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
Label This property is required. string
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
QueueManagerId This property is required. string
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
ServiceInstanceGuid This property is required. 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}$/.
Configs []MqcloudKeystoreCertificateConfigArgs
(List) The configuration details for this certificate. Nested schema for config:
MqcloudKeystoreCertificateId string
The unique identifier of the mqcloud_keystore_certificate.
certificateFile This property is required. String
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
label This property is required. String
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
queueManagerId This property is required. String
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
serviceInstanceGuid This property is required. 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}$/.
configs List<MqcloudKeystoreCertificateConfig>
(List) The configuration details for this certificate. Nested schema for config:
mqcloudKeystoreCertificateId String
The unique identifier of the mqcloud_keystore_certificate.
certificateFile This property is required. string
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
label This property is required. string
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
queueManagerId This property is required. string
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
serviceInstanceGuid This property is required. 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}$/.
configs MqcloudKeystoreCertificateConfig[]
(List) The configuration details for this certificate. Nested schema for config:
mqcloudKeystoreCertificateId string
The unique identifier of the mqcloud_keystore_certificate.
certificate_file This property is required. str
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
label This property is required. str
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
queue_manager_id This property is required. str
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
service_instance_guid This property is required. 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}$/.
configs Sequence[MqcloudKeystoreCertificateConfigArgs]
(List) The configuration details for this certificate. Nested schema for config:
mqcloud_keystore_certificate_id str
The unique identifier of the mqcloud_keystore_certificate.
certificateFile This property is required. String
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
label This property is required. String
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
queueManagerId This property is required. String
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
serviceInstanceGuid This property is required. 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}$/.
configs List<Property Map>
(List) The configuration details for this certificate. Nested schema for config:
mqcloudKeystoreCertificateId String
The unique identifier of the mqcloud_keystore_certificate.

Outputs

All input properties are implicitly available as output properties. Additionally, the MqcloudKeystoreCertificate resource produces the following output properties:

CertificateId string
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
CertificateType string
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
DnsNames List<string>
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
DnsNamesTotalCount double
(Integer) The total count of dns names.
Expiry string
(String) Expiry date for the certificate.
FingerprintSha256 string
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
Href string
(String) The URL for this key store certificate.
Id string
The provider-assigned unique ID for this managed resource.
IsDefault bool
(Boolean) Indicates whether it is the queue manager's default certificate.
Issued string
(String) Date certificate was issued.
IssuerCn string
(String) Issuer's Common Name.
IssuerDn string
(String) Issuer's Distinguished Name.
SubjectCn string
(String) Subject's Common Name.
SubjectDn string
(String) Subject's Distinguished Name.
CertificateId string
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
CertificateType string
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
DnsNames []string
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
DnsNamesTotalCount float64
(Integer) The total count of dns names.
Expiry string
(String) Expiry date for the certificate.
FingerprintSha256 string
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
Href string
(String) The URL for this key store certificate.
Id string
The provider-assigned unique ID for this managed resource.
IsDefault bool
(Boolean) Indicates whether it is the queue manager's default certificate.
Issued string
(String) Date certificate was issued.
IssuerCn string
(String) Issuer's Common Name.
IssuerDn string
(String) Issuer's Distinguished Name.
SubjectCn string
(String) Subject's Common Name.
SubjectDn string
(String) Subject's Distinguished Name.
certificateId String
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
certificateType String
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
dnsNames List<String>
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
dnsNamesTotalCount Double
(Integer) The total count of dns names.
expiry String
(String) Expiry date for the certificate.
fingerprintSha256 String
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
href String
(String) The URL for this key store certificate.
id String
The provider-assigned unique ID for this managed resource.
isDefault Boolean
(Boolean) Indicates whether it is the queue manager's default certificate.
issued String
(String) Date certificate was issued.
issuerCn String
(String) Issuer's Common Name.
issuerDn String
(String) Issuer's Distinguished Name.
subjectCn String
(String) Subject's Common Name.
subjectDn String
(String) Subject's Distinguished Name.
certificateId string
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
certificateType string
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
dnsNames string[]
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
dnsNamesTotalCount number
(Integer) The total count of dns names.
expiry string
(String) Expiry date for the certificate.
fingerprintSha256 string
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
href string
(String) The URL for this key store certificate.
id string
The provider-assigned unique ID for this managed resource.
isDefault boolean
(Boolean) Indicates whether it is the queue manager's default certificate.
issued string
(String) Date certificate was issued.
issuerCn string
(String) Issuer's Common Name.
issuerDn string
(String) Issuer's Distinguished Name.
subjectCn string
(String) Subject's Common Name.
subjectDn string
(String) Subject's Distinguished Name.
certificate_id str
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
certificate_type str
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
dns_names Sequence[str]
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
dns_names_total_count float
(Integer) The total count of dns names.
expiry str
(String) Expiry date for the certificate.
fingerprint_sha256 str
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
href str
(String) The URL for this key store certificate.
id str
The provider-assigned unique ID for this managed resource.
is_default bool
(Boolean) Indicates whether it is the queue manager's default certificate.
issued str
(String) Date certificate was issued.
issuer_cn str
(String) Issuer's Common Name.
issuer_dn str
(String) Issuer's Distinguished Name.
subject_cn str
(String) Subject's Common Name.
subject_dn str
(String) Subject's Distinguished Name.
certificateId String
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
certificateType String
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
dnsNames List<String>
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
dnsNamesTotalCount Number
(Integer) The total count of dns names.
expiry String
(String) Expiry date for the certificate.
fingerprintSha256 String
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
href String
(String) The URL for this key store certificate.
id String
The provider-assigned unique ID for this managed resource.
isDefault Boolean
(Boolean) Indicates whether it is the queue manager's default certificate.
issued String
(String) Date certificate was issued.
issuerCn String
(String) Issuer's Common Name.
issuerDn String
(String) Issuer's Distinguished Name.
subjectCn String
(String) Subject's Common Name.
subjectDn String
(String) Subject's Distinguished Name.

Look up Existing MqcloudKeystoreCertificate Resource

Get an existing MqcloudKeystoreCertificate 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?: MqcloudKeystoreCertificateState, opts?: CustomResourceOptions): MqcloudKeystoreCertificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificate_file: Optional[str] = None,
        certificate_id: Optional[str] = None,
        certificate_type: Optional[str] = None,
        configs: Optional[Sequence[MqcloudKeystoreCertificateConfigArgs]] = None,
        dns_names: Optional[Sequence[str]] = None,
        dns_names_total_count: Optional[float] = None,
        expiry: Optional[str] = None,
        fingerprint_sha256: Optional[str] = None,
        href: Optional[str] = None,
        is_default: Optional[bool] = None,
        issued: Optional[str] = None,
        issuer_cn: Optional[str] = None,
        issuer_dn: Optional[str] = None,
        label: Optional[str] = None,
        mqcloud_keystore_certificate_id: Optional[str] = None,
        queue_manager_id: Optional[str] = None,
        service_instance_guid: Optional[str] = None,
        subject_cn: Optional[str] = None,
        subject_dn: Optional[str] = None) -> MqcloudKeystoreCertificate
func GetMqcloudKeystoreCertificate(ctx *Context, name string, id IDInput, state *MqcloudKeystoreCertificateState, opts ...ResourceOption) (*MqcloudKeystoreCertificate, error)
public static MqcloudKeystoreCertificate Get(string name, Input<string> id, MqcloudKeystoreCertificateState? state, CustomResourceOptions? opts = null)
public static MqcloudKeystoreCertificate get(String name, Output<String> id, MqcloudKeystoreCertificateState state, CustomResourceOptions options)
resources:  _:    type: ibm:MqcloudKeystoreCertificate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
CertificateFile string
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
CertificateId string
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
CertificateType string
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
Configs List<MqcloudKeystoreCertificateConfig>
(List) The configuration details for this certificate. Nested schema for config:
DnsNames List<string>
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
DnsNamesTotalCount double
(Integer) The total count of dns names.
Expiry string
(String) Expiry date for the certificate.
FingerprintSha256 string
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
Href string
(String) The URL for this key store certificate.
IsDefault bool
(Boolean) Indicates whether it is the queue manager's default certificate.
Issued string
(String) Date certificate was issued.
IssuerCn string
(String) Issuer's Common Name.
IssuerDn string
(String) Issuer's Distinguished Name.
Label string
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
MqcloudKeystoreCertificateId string
The unique identifier of the mqcloud_keystore_certificate.
QueueManagerId string
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
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}$/.
SubjectCn string
(String) Subject's Common Name.
SubjectDn string
(String) Subject's Distinguished Name.
CertificateFile string
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
CertificateId string
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
CertificateType string
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
Configs []MqcloudKeystoreCertificateConfigArgs
(List) The configuration details for this certificate. Nested schema for config:
DnsNames []string
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
DnsNamesTotalCount float64
(Integer) The total count of dns names.
Expiry string
(String) Expiry date for the certificate.
FingerprintSha256 string
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
Href string
(String) The URL for this key store certificate.
IsDefault bool
(Boolean) Indicates whether it is the queue manager's default certificate.
Issued string
(String) Date certificate was issued.
IssuerCn string
(String) Issuer's Common Name.
IssuerDn string
(String) Issuer's Distinguished Name.
Label string
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
MqcloudKeystoreCertificateId string
The unique identifier of the mqcloud_keystore_certificate.
QueueManagerId string
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
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}$/.
SubjectCn string
(String) Subject's Common Name.
SubjectDn string
(String) Subject's Distinguished Name.
certificateFile String
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
certificateId String
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
certificateType String
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
configs List<MqcloudKeystoreCertificateConfig>
(List) The configuration details for this certificate. Nested schema for config:
dnsNames List<String>
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
dnsNamesTotalCount Double
(Integer) The total count of dns names.
expiry String
(String) Expiry date for the certificate.
fingerprintSha256 String
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
href String
(String) The URL for this key store certificate.
isDefault Boolean
(Boolean) Indicates whether it is the queue manager's default certificate.
issued String
(String) Date certificate was issued.
issuerCn String
(String) Issuer's Common Name.
issuerDn String
(String) Issuer's Distinguished Name.
label String
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
mqcloudKeystoreCertificateId String
The unique identifier of the mqcloud_keystore_certificate.
queueManagerId String
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
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}$/.
subjectCn String
(String) Subject's Common Name.
subjectDn String
(String) Subject's Distinguished Name.
certificateFile string
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
certificateId string
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
certificateType string
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
configs MqcloudKeystoreCertificateConfig[]
(List) The configuration details for this certificate. Nested schema for config:
dnsNames string[]
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
dnsNamesTotalCount number
(Integer) The total count of dns names.
expiry string
(String) Expiry date for the certificate.
fingerprintSha256 string
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
href string
(String) The URL for this key store certificate.
isDefault boolean
(Boolean) Indicates whether it is the queue manager's default certificate.
issued string
(String) Date certificate was issued.
issuerCn string
(String) Issuer's Common Name.
issuerDn string
(String) Issuer's Distinguished Name.
label string
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
mqcloudKeystoreCertificateId string
The unique identifier of the mqcloud_keystore_certificate.
queueManagerId string
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
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}$/.
subjectCn string
(String) Subject's Common Name.
subjectDn string
(String) Subject's Distinguished Name.
certificate_file str
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
certificate_id str
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
certificate_type str
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
configs Sequence[MqcloudKeystoreCertificateConfigArgs]
(List) The configuration details for this certificate. Nested schema for config:
dns_names Sequence[str]
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
dns_names_total_count float
(Integer) The total count of dns names.
expiry str
(String) Expiry date for the certificate.
fingerprint_sha256 str
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
href str
(String) The URL for this key store certificate.
is_default bool
(Boolean) Indicates whether it is the queue manager's default certificate.
issued str
(String) Date certificate was issued.
issuer_cn str
(String) Issuer's Common Name.
issuer_dn str
(String) Issuer's Distinguished Name.
label str
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
mqcloud_keystore_certificate_id str
The unique identifier of the mqcloud_keystore_certificate.
queue_manager_id str
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
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}$/.
subject_cn str
(String) Subject's Common Name.
subject_dn str
(String) Subject's Distinguished Name.
certificateFile String
The filename and path of the certificate to be uploaded.

  • Constraints: The maximum length is 65537 characters. The minimum length is 1500 characters.
certificateId String
(String) ID of the certificate.

  • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[0-9a-fA-F]*$/.
certificateType String
(String) The type of certificate.

  • Constraints: Allowable values are: key_store.
configs List<Property Map>
(List) The configuration details for this certificate. Nested schema for config:
dnsNames List<String>
(List) The list of DNS names.

  • Constraints: The maximum length is 200 items. The minimum length is 0 items.
dnsNamesTotalCount Number
(Integer) The total count of dns names.
expiry String
(String) Expiry date for the certificate.
fingerprintSha256 String
(String) Fingerprint SHA256.

  • Constraints: The value must match regular expression /^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/.
href String
(String) The URL for this key store certificate.
isDefault Boolean
(Boolean) Indicates whether it is the queue manager's default certificate.
issued String
(String) Date certificate was issued.
issuerCn String
(String) Issuer's Common Name.
issuerDn String
(String) Issuer's Distinguished Name.
label String
The label to use for the certificate to be uploaded.

  • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
mqcloudKeystoreCertificateId String
The unique identifier of the mqcloud_keystore_certificate.
queueManagerId String
The id of the queue manager to retrieve its full details.

  • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-fA-F]{32}$/.
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}$/.
subjectCn String
(String) Subject's Common Name.
subjectDn String
(String) Subject's Distinguished Name.

Supporting Types

MqcloudKeystoreCertificateConfig
, MqcloudKeystoreCertificateConfigArgs

Ams List<MqcloudKeystoreCertificateConfigAm>
(List) A list of channels that are configured with this certificate. Nested schema for ams:
Ams []MqcloudKeystoreCertificateConfigAm
(List) A list of channels that are configured with this certificate. Nested schema for ams:
ams List<MqcloudKeystoreCertificateConfigAm>
(List) A list of channels that are configured with this certificate. Nested schema for ams:
ams MqcloudKeystoreCertificateConfigAm[]
(List) A list of channels that are configured with this certificate. Nested schema for ams:
ams Sequence[MqcloudKeystoreCertificateConfigAm]
(List) A list of channels that are configured with this certificate. Nested schema for ams:
ams List<Property Map>
(List) A list of channels that are configured with this certificate. Nested schema for ams:

MqcloudKeystoreCertificateConfigAm
, MqcloudKeystoreCertificateConfigAmArgs

Channels List<MqcloudKeystoreCertificateConfigAmChannel>
(List) A list of channels that are configured with this certificate.

  • Constraints: The maximum length is 999999999 items. The minimum length is 0 items. Nested schema for channels:
Channels []MqcloudKeystoreCertificateConfigAmChannel
(List) A list of channels that are configured with this certificate.

  • Constraints: The maximum length is 999999999 items. The minimum length is 0 items. Nested schema for channels:
channels List<MqcloudKeystoreCertificateConfigAmChannel>
(List) A list of channels that are configured with this certificate.

  • Constraints: The maximum length is 999999999 items. The minimum length is 0 items. Nested schema for channels:
channels MqcloudKeystoreCertificateConfigAmChannel[]
(List) A list of channels that are configured with this certificate.

  • Constraints: The maximum length is 999999999 items. The minimum length is 0 items. Nested schema for channels:
channels Sequence[MqcloudKeystoreCertificateConfigAmChannel]
(List) A list of channels that are configured with this certificate.

  • Constraints: The maximum length is 999999999 items. The minimum length is 0 items. Nested schema for channels:
channels List<Property Map>
(List) A list of channels that are configured with this certificate.

  • Constraints: The maximum length is 999999999 items. The minimum length is 0 items. Nested schema for channels:

MqcloudKeystoreCertificateConfigAmChannel
, MqcloudKeystoreCertificateConfigAmChannelArgs

Name string
(String) The name of the channel.

  • Constraints: The maximum length is 20 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.\/%]*$/.
Name string
(String) The name of the channel.

  • Constraints: The maximum length is 20 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.\/%]*$/.
name String
(String) The name of the channel.

  • Constraints: The maximum length is 20 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.\/%]*$/.
name string
(String) The name of the channel.

  • Constraints: The maximum length is 20 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.\/%]*$/.
name str
(String) The name of the channel.

  • Constraints: The maximum length is 20 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.\/%]*$/.
name String
(String) The name of the channel.

  • Constraints: The maximum length is 20 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.\/%]*$/.

Import

Important Note

When configuring the ibm_mqcloud_keystore_certificate resource in the root module:

Ensure to set the certificate_file value to an empty string (certificate_file=""). This step is crucial as we are not downloading the certificate to the local system.

Syntax

```sh
$ pulumi import ibm:index/mqcloudKeystoreCertificate:MqcloudKeystoreCertificate mqcloud_keystore_certificate <service_instance_guid>/<queue_manager_id>/<certificate_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.