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,
});
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"])
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
})
}
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,
});
});
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());
}
}
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 string
- The unique name of the resource.
- args MqcloudTruststoreCertificateArgs
- 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 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 string
- The unique name of the resource.
- args MqcloudTruststoreCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MqcloudTruststoreCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var mqcloudTruststoreCertificateResource = new MqcloudTruststoreCertificate("mqcloudTruststoreCertificateResource", MqcloudTruststoreCertificateArgs.builder()
.certificateFile("string")
.label("string")
.queueManagerId("string")
.serviceInstanceGuid("string")
.mqcloudTruststoreCertificateId("string")
.build());
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")
const mqcloudTruststoreCertificateResource = new ibm.MqcloudTruststoreCertificate("mqcloudTruststoreCertificateResource", {
certificateFile: "string",
label: "string",
queueManagerId: "string",
serviceInstanceGuid: "string",
mqcloudTruststoreCertificateId: "string",
});
type: ibm:MqcloudTruststoreCertificate
properties:
certificateFile: string
label: string
mqcloudTruststoreCertificateId: string
queueManagerId: string
serviceInstanceGuid: string
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:
- Certificate
File string - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- Label string
- The label to use for the certificate to be uploaded.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- Queue
Manager stringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
Truststore stringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- Certificate
File string - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- Label string
- The label to use for the certificate to be uploaded.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- Queue
Manager stringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
Truststore stringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- certificate
File String - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- label String
- The label to use for the certificate to be uploaded.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- queue
Manager StringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
Truststore StringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- certificate
File string - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- label string
- The label to use for the certificate to be uploaded.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- queue
Manager stringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
Truststore stringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- certificate_
file str - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- label str
- The label to use for the certificate to be uploaded.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- queue_
manager_ strid - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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_
truststore_ strcertificate_ id - The unique identifier of the mqcloud_truststore_certificate.
- certificate
File String - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- label String
- The label to use for the certificate to be uploaded.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- queue
Manager StringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
Truststore StringCertificate Id - 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:
- Certificate
Id string - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- Certificate
Type string - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- Expiry string
- (String) Expiry date for the certificate.
- Fingerprint
Sha256 string - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- 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.
- Issuer
Cn string - (String) Issuer's Common Name.
- Issuer
Dn string - (String) Issuer's Distinguished Name.
- Subject
Cn string - (String) Subject's Common Name.
- Subject
Dn string - (String) Subject's Distinguished Name.
- Trusted bool
- (Boolean) Indicates whether a certificate is trusted.
- Certificate
Id string - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- Certificate
Type string - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- Expiry string
- (String) Expiry date for the certificate.
- Fingerprint
Sha256 string - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- 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.
- Issuer
Cn string - (String) Issuer's Common Name.
- Issuer
Dn string - (String) Issuer's Distinguished Name.
- Subject
Cn string - (String) Subject's Common Name.
- Subject
Dn string - (String) Subject's Distinguished Name.
- Trusted bool
- (Boolean) Indicates whether a certificate is trusted.
- certificate
Id String - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- certificate
Type String - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- expiry String
- (String) Expiry date for the certificate.
- fingerprint
Sha256 String - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- 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.
- issuer
Cn String - (String) Issuer's Common Name.
- issuer
Dn String - (String) Issuer's Distinguished Name.
- subject
Cn String - (String) Subject's Common Name.
- subject
Dn String - (String) Subject's Distinguished Name.
- trusted Boolean
- (Boolean) Indicates whether a certificate is trusted.
- certificate
Id string - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- certificate
Type string - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- expiry string
- (String) Expiry date for the certificate.
- fingerprint
Sha256 string - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- 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.
- issuer
Cn string - (String) Issuer's Common Name.
- issuer
Dn string - (String) Issuer's Distinguished Name.
- subject
Cn string - (String) Subject's Common Name.
- subject
Dn 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 is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- certificate_
type str - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- 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}$/
.
- Constraints: The value must match regular expression
- 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.
- certificate
Id String - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- certificate
Type String - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- expiry String
- (String) Expiry date for the certificate.
- fingerprint
Sha256 String - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- 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.
- issuer
Cn String - (String) Issuer's Common Name.
- issuer
Dn String - (String) Issuer's Distinguished Name.
- subject
Cn String - (String) Subject's Common Name.
- subject
Dn 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
- 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.
- Certificate
File string - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- Certificate
Id string - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- Certificate
Type string - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- Expiry string
- (String) Expiry date for the certificate.
- Fingerprint
Sha256 string - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- Href string
- (String) The URL for this trust store certificate.
- Issued string
- (String) The Date the certificate was issued.
- Issuer
Cn string - (String) Issuer's Common Name.
- Issuer
Dn 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 is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- Mqcloud
Truststore stringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- Queue
Manager stringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
- Subject
Cn string - (String) Subject's Common Name.
- Subject
Dn string - (String) Subject's Distinguished Name.
- Trusted bool
- (Boolean) Indicates whether a certificate is trusted.
- Certificate
File string - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- Certificate
Id string - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- Certificate
Type string - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- Expiry string
- (String) Expiry date for the certificate.
- Fingerprint
Sha256 string - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- Href string
- (String) The URL for this trust store certificate.
- Issued string
- (String) The Date the certificate was issued.
- Issuer
Cn string - (String) Issuer's Common Name.
- Issuer
Dn 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 is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- Mqcloud
Truststore stringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- Queue
Manager stringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
- Subject
Cn string - (String) Subject's Common Name.
- Subject
Dn string - (String) Subject's Distinguished Name.
- Trusted bool
- (Boolean) Indicates whether a certificate is trusted.
- certificate
File String - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- certificate
Id String - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- certificate
Type String - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- expiry String
- (String) Expiry date for the certificate.
- fingerprint
Sha256 String - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- href String
- (String) The URL for this trust store certificate.
- issued String
- (String) The Date the certificate was issued.
- issuer
Cn String - (String) Issuer's Common Name.
- issuer
Dn 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 is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- mqcloud
Truststore StringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- queue
Manager StringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
- subject
Cn String - (String) Subject's Common Name.
- subject
Dn String - (String) Subject's Distinguished Name.
- trusted Boolean
- (Boolean) Indicates whether a certificate is trusted.
- certificate
File string - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- certificate
Id string - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- certificate
Type string - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- expiry string
- (String) Expiry date for the certificate.
- fingerprint
Sha256 string - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- href string
- (String) The URL for this trust store certificate.
- issued string
- (String) The Date the certificate was issued.
- issuer
Cn string - (String) Issuer's Common Name.
- issuer
Dn 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 is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- mqcloud
Truststore stringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- queue
Manager stringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
- subject
Cn string - (String) Subject's Common Name.
- subject
Dn 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 is1500
characters.
- Constraints: The maximum length is
- certificate_
id str - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- certificate_
type str - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- 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}$/
.
- Constraints: The value must match regular expression
- 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 is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- mqcloud_
truststore_ strcertificate_ id - The unique identifier of the mqcloud_truststore_certificate.
- queue_
manager_ strid - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
- 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.
- certificate
File String - The filename and path of the certificate to be uploaded.
- Constraints: The maximum length is
65537
characters. The minimum length is1500
characters.
- Constraints: The maximum length is
- certificate
Id String - (String) Id of the certificate.
- Constraints: The maximum length is
16
characters. The minimum length is1
character. The value must match regular expression/^[0-9a-fA-F]*$/
.
- Constraints: The maximum length is
- certificate
Type String - (String) The type of certificate.
- Constraints: Allowable values are:
trust_store
.
- Constraints: Allowable values are:
- expiry String
- (String) Expiry date for the certificate.
- fingerprint
Sha256 String - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- href String
- (String) The URL for this trust store certificate.
- issued String
- (String) The Date the certificate was issued.
- issuer
Cn String - (String) Issuer's Common Name.
- issuer
Dn 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 is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- mqcloud
Truststore StringCertificate Id - The unique identifier of the mqcloud_truststore_certificate.
- queue
Manager StringId - The id of the queue manager to retrieve its full details.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-fA-F]{32}$/
.
- 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
- subject
Cn String - (String) Subject's Common Name.
- subject
Dn 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.