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

ibm.getMqcloudTruststoreCertificate

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const mqcloudTruststoreCertificate = ibm.getMqcloudTruststoreCertificate({
        label: ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance.label,
        queueManagerId: ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance.queue_manager_id,
        serviceInstanceGuid: ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance.service_instance_guid,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    mqcloud_truststore_certificate = ibm.get_mqcloud_truststore_certificate(label=ibm_mqcloud_truststore_certificate["mqcloud_truststore_certificate_instance"]["label"],
        queue_manager_id=ibm_mqcloud_truststore_certificate["mqcloud_truststore_certificate_instance"]["queue_manager_id"],
        service_instance_guid=ibm_mqcloud_truststore_certificate["mqcloud_truststore_certificate_instance"]["service_instance_guid"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.LookupMqcloudTruststoreCertificate(ctx, &ibm.LookupMqcloudTruststoreCertificateArgs{
    			Label:               pulumi.StringRef(ibm_mqcloud_truststore_certificate.Mqcloud_truststore_certificate_instance.Label),
    			QueueManagerId:      ibm_mqcloud_truststore_certificate.Mqcloud_truststore_certificate_instance.Queue_manager_id,
    			ServiceInstanceGuid: ibm_mqcloud_truststore_certificate.Mqcloud_truststore_certificate_instance.Service_instance_guid,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var mqcloudTruststoreCertificate = Ibm.GetMqcloudTruststoreCertificate.Invoke(new()
        {
            Label = ibm_mqcloud_truststore_certificate.Mqcloud_truststore_certificate_instance.Label,
            QueueManagerId = ibm_mqcloud_truststore_certificate.Mqcloud_truststore_certificate_instance.Queue_manager_id,
            ServiceInstanceGuid = ibm_mqcloud_truststore_certificate.Mqcloud_truststore_certificate_instance.Service_instance_guid,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetMqcloudTruststoreCertificateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var mqcloudTruststoreCertificate = IbmFunctions.getMqcloudTruststoreCertificate(GetMqcloudTruststoreCertificateArgs.builder()
                .label(ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance().label())
                .queueManagerId(ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance().queue_manager_id())
                .serviceInstanceGuid(ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance().service_instance_guid())
                .build());
    
        }
    }
    
    variables:
      mqcloudTruststoreCertificate:
        fn::invoke:
          function: ibm:getMqcloudTruststoreCertificate
          arguments:
            label: ${ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance.label}
            queueManagerId: ${ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance.queue_manager_id}
            serviceInstanceGuid: ${ibm_mqcloud_truststore_certificate.mqcloud_truststore_certificate_instance.service_instance_guid}
    

    Using getMqcloudTruststoreCertificate

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getMqcloudTruststoreCertificate(args: GetMqcloudTruststoreCertificateArgs, opts?: InvokeOptions): Promise<GetMqcloudTruststoreCertificateResult>
    function getMqcloudTruststoreCertificateOutput(args: GetMqcloudTruststoreCertificateOutputArgs, opts?: InvokeOptions): Output<GetMqcloudTruststoreCertificateResult>
    def get_mqcloud_truststore_certificate(id: Optional[str] = None,
                                           label: Optional[str] = None,
                                           queue_manager_id: Optional[str] = None,
                                           service_instance_guid: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetMqcloudTruststoreCertificateResult
    def get_mqcloud_truststore_certificate_output(id: Optional[pulumi.Input[str]] = None,
                                           label: Optional[pulumi.Input[str]] = None,
                                           queue_manager_id: Optional[pulumi.Input[str]] = None,
                                           service_instance_guid: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetMqcloudTruststoreCertificateResult]
    func LookupMqcloudTruststoreCertificate(ctx *Context, args *LookupMqcloudTruststoreCertificateArgs, opts ...InvokeOption) (*LookupMqcloudTruststoreCertificateResult, error)
    func LookupMqcloudTruststoreCertificateOutput(ctx *Context, args *LookupMqcloudTruststoreCertificateOutputArgs, opts ...InvokeOption) LookupMqcloudTruststoreCertificateResultOutput

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

    public static class GetMqcloudTruststoreCertificate 
    {
        public static Task<GetMqcloudTruststoreCertificateResult> InvokeAsync(GetMqcloudTruststoreCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetMqcloudTruststoreCertificateResult> Invoke(GetMqcloudTruststoreCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMqcloudTruststoreCertificateResult> getMqcloudTruststoreCertificate(GetMqcloudTruststoreCertificateArgs args, InvokeOptions options)
    public static Output<GetMqcloudTruststoreCertificateResult> getMqcloudTruststoreCertificate(GetMqcloudTruststoreCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getMqcloudTruststoreCertificate:getMqcloudTruststoreCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    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}$/.
    Id 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]*$/.
    Label string
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    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}$/.
    Id 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]*$/.
    Label string
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    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}$/.
    id 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]*$/.
    label String
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    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}$/.
    id 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]*$/.
    label string
    Certificate label in queue manager store.

    • 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 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}$/.
    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]*$/.
    label str
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    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}$/.
    id 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]*$/.
    label String
    Certificate label in queue manager store.

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

    getMqcloudTruststoreCertificate Result

    The following output properties are available:

    Id 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]*$/.
    QueueManagerId string
    ServiceInstanceGuid string
    TotalCount double
    (Integer) The total count of trust store certificates.
    TrustStores List<GetMqcloudTruststoreCertificateTrustStore>
    (List) The list of trust store certificates.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for trust_store:
    Label string
    (String) Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    Id 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]*$/.
    QueueManagerId string
    ServiceInstanceGuid string
    TotalCount float64
    (Integer) The total count of trust store certificates.
    TrustStores []GetMqcloudTruststoreCertificateTrustStore
    (List) The list of trust store certificates.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for trust_store:
    Label string
    (String) Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    id 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]*$/.
    queueManagerId String
    serviceInstanceGuid String
    totalCount Double
    (Integer) The total count of trust store certificates.
    trustStores List<GetMqcloudTruststoreCertificateTrustStore>
    (List) The list of trust store certificates.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for trust_store:
    label String
    (String) Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    id 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]*$/.
    queueManagerId string
    serviceInstanceGuid string
    totalCount number
    (Integer) The total count of trust store certificates.
    trustStores GetMqcloudTruststoreCertificateTrustStore[]
    (List) The list of trust store certificates.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for trust_store:
    label string
    (String) Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    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]*$/.
    queue_manager_id str
    service_instance_guid str
    total_count float
    (Integer) The total count of trust store certificates.
    trust_stores Sequence[GetMqcloudTruststoreCertificateTrustStore]
    (List) The list of trust store certificates.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for trust_store:
    label str
    (String) Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    id 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]*$/.
    queueManagerId String
    serviceInstanceGuid String
    totalCount Number
    (Integer) The total count of trust store certificates.
    trustStores List<Property Map>
    (List) The list of trust store certificates.

    • Constraints: The maximum length is 50 items. The minimum length is 0 items. Nested schema for trust_store:
    label String
    (String) Certificate label in queue manager store.

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

    Supporting Types

    GetMqcloudTruststoreCertificateTrustStore

    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
    (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]*$/.
    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
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    SubjectCn string
    (String) Subject's Common Name.
    SubjectDn string
    (String) Subject's Distinguished Name.
    Trusted bool
    (Boolean) Indicates whether a certificate is trusted.
    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
    (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]*$/.
    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
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    SubjectCn string
    (String) Subject's Common Name.
    SubjectDn string
    (String) Subject's Distinguished Name.
    Trusted bool
    (Boolean) Indicates whether a certificate is trusted.
    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
    (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]*$/.
    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
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    subjectCn String
    (String) Subject's Common Name.
    subjectDn String
    (String) Subject's Distinguished Name.
    trusted Boolean
    (Boolean) Indicates whether a certificate is trusted.
    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
    (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]*$/.
    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
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    subjectCn string
    (String) Subject's Common Name.
    subjectDn string
    (String) Subject's Distinguished Name.
    trusted boolean
    (Boolean) Indicates whether a certificate is trusted.
    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
    (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]*$/.
    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
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    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.
    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
    (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]*$/.
    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
    Certificate label in queue manager store.

    • Constraints: The maximum length is 64 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9_.]*$/.
    subjectCn String
    (String) Subject's Common Name.
    subjectDn String
    (String) Subject's Distinguished Name.
    trusted Boolean
    (Boolean) Indicates whether a certificate is trusted.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud