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

ibm.MqcloudTruststoreCertificate

Explore with Pulumi AI

Example Usage

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

const mqcloudTruststoreCertificateInstance = new ibm.MqcloudTruststoreCertificate("mqcloudTruststoreCertificateInstance", {
    certificateFile: fs.readFileSync("certificate_file.data", { encoding: "base64" }),
    label: "certlabel",
    queueManagerId: _var.queue_manager_id,
    serviceInstanceGuid: _var.service_instance_guid,
});
Copy
import pulumi
import base64
import pulumi_ibm as ibm

mqcloud_truststore_certificate_instance = ibm.MqcloudTruststoreCertificate("mqcloudTruststoreCertificateInstance",
    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"])
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.NewMqcloudTruststoreCertificate(ctx, "mqcloudTruststoreCertificateInstance", &ibm.MqcloudTruststoreCertificateArgs{
			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),
		})
		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 mqcloudTruststoreCertificateInstance = new Ibm.MqcloudTruststoreCertificate("mqcloudTruststoreCertificateInstance", new()
    {
        CertificateFile = ReadFileBase64("certificate_file.data"),
        Label = "certlabel",
        QueueManagerId = @var.Queue_manager_id,
        ServiceInstanceGuid = @var.Service_instance_guid,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.MqcloudTruststoreCertificate;
import com.pulumi.ibm.MqcloudTruststoreCertificateArgs;
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 mqcloudTruststoreCertificateInstance = new MqcloudTruststoreCertificate("mqcloudTruststoreCertificateInstance", MqcloudTruststoreCertificateArgs.builder()
            .certificateFile(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("certificate_file.data"))))
            .label("certlabel")
            .queueManagerId(var_.queue_manager_id())
            .serviceInstanceGuid(var_.service_instance_guid())
            .build());

    }
}
Copy
Coming soon!

Create MqcloudTruststoreCertificate Resource

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

Constructor syntax

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

@overload
def MqcloudTruststoreCertificate(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,
                                 mqcloud_truststore_certificate_id: Optional[str] = None)
func NewMqcloudTruststoreCertificate(ctx *Context, name string, args MqcloudTruststoreCertificateArgs, opts ...ResourceOption) (*MqcloudTruststoreCertificate, error)
public MqcloudTruststoreCertificate(string name, MqcloudTruststoreCertificateArgs args, CustomResourceOptions? opts = null)
public MqcloudTruststoreCertificate(String name, MqcloudTruststoreCertificateArgs args)
public MqcloudTruststoreCertificate(String name, MqcloudTruststoreCertificateArgs args, CustomResourceOptions options)
type: ibm:MqcloudTruststoreCertificate
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. MqcloudTruststoreCertificateArgs
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. MqcloudTruststoreCertificateArgs
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. MqcloudTruststoreCertificateArgs
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. MqcloudTruststoreCertificateArgs
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. MqcloudTruststoreCertificateArgs
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 mqcloudTruststoreCertificateResource = new Ibm.MqcloudTruststoreCertificate("mqcloudTruststoreCertificateResource", new()
{
    CertificateFile = "string",
    Label = "string",
    QueueManagerId = "string",
    ServiceInstanceGuid = "string",
    MqcloudTruststoreCertificateId = "string",
});
Copy
example, err := ibm.NewMqcloudTruststoreCertificate(ctx, "mqcloudTruststoreCertificateResource", &ibm.MqcloudTruststoreCertificateArgs{
	CertificateFile:                pulumi.String("string"),
	Label:                          pulumi.String("string"),
	QueueManagerId:                 pulumi.String("string"),
	ServiceInstanceGuid:            pulumi.String("string"),
	MqcloudTruststoreCertificateId: pulumi.String("string"),
})
Copy
var mqcloudTruststoreCertificateResource = new MqcloudTruststoreCertificate("mqcloudTruststoreCertificateResource", MqcloudTruststoreCertificateArgs.builder()
    .certificateFile("string")
    .label("string")
    .queueManagerId("string")
    .serviceInstanceGuid("string")
    .mqcloudTruststoreCertificateId("string")
    .build());
Copy
mqcloud_truststore_certificate_resource = ibm.MqcloudTruststoreCertificate("mqcloudTruststoreCertificateResource",
    certificate_file="string",
    label="string",
    queue_manager_id="string",
    service_instance_guid="string",
    mqcloud_truststore_certificate_id="string")
Copy
const mqcloudTruststoreCertificateResource = new ibm.MqcloudTruststoreCertificate("mqcloudTruststoreCertificateResource", {
    certificateFile: "string",
    label: "string",
    queueManagerId: "string",
    serviceInstanceGuid: "string",
    mqcloudTruststoreCertificateId: "string",
});
Copy
type: ibm:MqcloudTruststoreCertificate
properties:
    certificateFile: string
    label: string
    mqcloudTruststoreCertificateId: string
    queueManagerId: string
    serviceInstanceGuid: string
Copy

MqcloudTruststoreCertificate 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 MqcloudTruststoreCertificate 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}$/.
MqcloudTruststoreCertificateId string
The unique identifier of the mqcloud_truststore_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}$/.
MqcloudTruststoreCertificateId string
The unique identifier of the mqcloud_truststore_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}$/.
mqcloudTruststoreCertificateId String
The unique identifier of the mqcloud_truststore_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}$/.
mqcloudTruststoreCertificateId string
The unique identifier of the mqcloud_truststore_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}$/.
mqcloud_truststore_certificate_id str
The unique identifier of the mqcloud_truststore_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}$/.
mqcloudTruststoreCertificateId String
The unique identifier of the mqcloud_truststore_certificate.

Outputs

All input properties are implicitly available as output properties. Additionally, the MqcloudTruststoreCertificate 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: trust_store.
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 trust store certificate.
Id string
The provider-assigned unique ID for this managed resource.
Issued string
(String) The Date the 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.
Trusted bool
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
Id string
The provider-assigned unique ID for this managed resource.
Issued string
(String) The Date the 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.
Trusted bool
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
id String
The provider-assigned unique ID for this managed resource.
issued String
(String) The Date the 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.
trusted Boolean
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
id string
The provider-assigned unique ID for this managed resource.
issued string
(String) The Date the 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.
trusted boolean
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
id str
The provider-assigned unique ID for this managed resource.
issued str
(String) The Date the 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.
trusted bool
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
id String
The provider-assigned unique ID for this managed resource.
issued String
(String) The Date the 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.
trusted Boolean
(Boolean) Indicates whether a certificate is trusted.

Look up Existing MqcloudTruststoreCertificate Resource

Get an existing MqcloudTruststoreCertificate 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?: MqcloudTruststoreCertificateState, opts?: CustomResourceOptions): MqcloudTruststoreCertificate
@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,
        expiry: Optional[str] = None,
        fingerprint_sha256: Optional[str] = None,
        href: Optional[str] = None,
        issued: Optional[str] = None,
        issuer_cn: Optional[str] = None,
        issuer_dn: Optional[str] = None,
        label: Optional[str] = None,
        mqcloud_truststore_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,
        trusted: Optional[bool] = None) -> MqcloudTruststoreCertificate
func GetMqcloudTruststoreCertificate(ctx *Context, name string, id IDInput, state *MqcloudTruststoreCertificateState, opts ...ResourceOption) (*MqcloudTruststoreCertificate, error)
public static MqcloudTruststoreCertificate Get(string name, Input<string> id, MqcloudTruststoreCertificateState? state, CustomResourceOptions? opts = null)
public static MqcloudTruststoreCertificate get(String name, Output<String> id, MqcloudTruststoreCertificateState state, CustomResourceOptions options)
resources:  _:    type: ibm:MqcloudTruststoreCertificate    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: trust_store.
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 trust store certificate.
Issued string
(String) The Date the 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_.]*$/.
MqcloudTruststoreCertificateId string
The unique identifier of the mqcloud_truststore_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.
Trusted bool
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
Issued string
(String) The Date the 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_.]*$/.
MqcloudTruststoreCertificateId string
The unique identifier of the mqcloud_truststore_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.
Trusted bool
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
issued String
(String) The Date the 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_.]*$/.
mqcloudTruststoreCertificateId String
The unique identifier of the mqcloud_truststore_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.
trusted Boolean
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
issued string
(String) The Date the 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_.]*$/.
mqcloudTruststoreCertificateId string
The unique identifier of the mqcloud_truststore_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.
trusted boolean
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
issued str
(String) The Date the 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_truststore_certificate_id str
The unique identifier of the mqcloud_truststore_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.
trusted bool
(Boolean) Indicates whether a certificate is trusted.
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: trust_store.
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 trust store certificate.
issued String
(String) The Date the 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_.]*$/.
mqcloudTruststoreCertificateId String
The unique identifier of the mqcloud_truststore_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.
trusted Boolean
(Boolean) Indicates whether a certificate is trusted.

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/mqcloudTruststoreCertificate:MqcloudTruststoreCertificate mqcloud_truststore_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.