ibm.MqcloudKeystoreCertificate
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as ibm from "@pulumi/ibm";
const mqcloudKeystoreCertificateInstance = new ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateInstance", {
certificateFile: fs.readFileSync("certificate_file.data", { encoding: "base64" }),
label: "certlabel",
queueManagerId: _var.queue_manager_id,
serviceInstanceGuid: _var.service_instance_guid,
configs: [{
ams: [{
channels: [{
name: "CLOUD.APP.SVRCONN",
}],
}],
}],
});
import pulumi
import base64
import pulumi_ibm as ibm
mqcloud_keystore_certificate_instance = ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateInstance",
certificate_file=(lambda path: base64.b64encode(open(path).read().encode()).decode())("certificate_file.data"),
label="certlabel",
queue_manager_id=var["queue_manager_id"],
service_instance_guid=var["service_instance_guid"],
configs=[{
"ams": [{
"channels": [{
"name": "CLOUD.APP.SVRCONN",
}],
}],
}])
package main
import (
"encoding/base64"
"os"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func filebase64OrPanic(path string) string {
if fileData, err := os.ReadFile(path); err == nil {
return base64.StdEncoding.EncodeToString(fileData[:])
} else {
panic(err.Error())
}
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewMqcloudKeystoreCertificate(ctx, "mqcloudKeystoreCertificateInstance", &ibm.MqcloudKeystoreCertificateArgs{
CertificateFile: pulumi.String(filebase64OrPanic("certificate_file.data")),
Label: pulumi.String("certlabel"),
QueueManagerId: pulumi.Any(_var.Queue_manager_id),
ServiceInstanceGuid: pulumi.Any(_var.Service_instance_guid),
Configs: ibm.MqcloudKeystoreCertificateConfigArray{
&ibm.MqcloudKeystoreCertificateConfigArgs{
Ams: ibm.MqcloudKeystoreCertificateConfigAmArray{
&ibm.MqcloudKeystoreCertificateConfigAmArgs{
Channels: ibm.MqcloudKeystoreCertificateConfigAmChannelArray{
&ibm.MqcloudKeystoreCertificateConfigAmChannelArgs{
Name: pulumi.String("CLOUD.APP.SVRCONN"),
},
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
string ReadFileBase64(string path)
{
return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)));
}
return await Deployment.RunAsync(() =>
{
var mqcloudKeystoreCertificateInstance = new Ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateInstance", new()
{
CertificateFile = ReadFileBase64("certificate_file.data"),
Label = "certlabel",
QueueManagerId = @var.Queue_manager_id,
ServiceInstanceGuid = @var.Service_instance_guid,
Configs = new[]
{
new Ibm.Inputs.MqcloudKeystoreCertificateConfigArgs
{
Ams = new[]
{
new Ibm.Inputs.MqcloudKeystoreCertificateConfigAmArgs
{
Channels = new[]
{
new Ibm.Inputs.MqcloudKeystoreCertificateConfigAmChannelArgs
{
Name = "CLOUD.APP.SVRCONN",
},
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.MqcloudKeystoreCertificate;
import com.pulumi.ibm.MqcloudKeystoreCertificateArgs;
import com.pulumi.ibm.inputs.MqcloudKeystoreCertificateConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var mqcloudKeystoreCertificateInstance = new MqcloudKeystoreCertificate("mqcloudKeystoreCertificateInstance", MqcloudKeystoreCertificateArgs.builder()
.certificateFile(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("certificate_file.data"))))
.label("certlabel")
.queueManagerId(var_.queue_manager_id())
.serviceInstanceGuid(var_.service_instance_guid())
.configs(MqcloudKeystoreCertificateConfigArgs.builder()
.ams(MqcloudKeystoreCertificateConfigAmArgs.builder()
.channels(MqcloudKeystoreCertificateConfigAmChannelArgs.builder()
.name("CLOUD.APP.SVRCONN")
.build())
.build())
.build())
.build());
}
}
Coming soon!
Create MqcloudKeystoreCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MqcloudKeystoreCertificate(name: string, args: MqcloudKeystoreCertificateArgs, opts?: CustomResourceOptions);
@overload
def MqcloudKeystoreCertificate(resource_name: str,
args: MqcloudKeystoreCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MqcloudKeystoreCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_file: Optional[str] = None,
label: Optional[str] = None,
queue_manager_id: Optional[str] = None,
service_instance_guid: Optional[str] = None,
configs: Optional[Sequence[MqcloudKeystoreCertificateConfigArgs]] = None,
mqcloud_keystore_certificate_id: Optional[str] = None)
func NewMqcloudKeystoreCertificate(ctx *Context, name string, args MqcloudKeystoreCertificateArgs, opts ...ResourceOption) (*MqcloudKeystoreCertificate, error)
public MqcloudKeystoreCertificate(string name, MqcloudKeystoreCertificateArgs args, CustomResourceOptions? opts = null)
public MqcloudKeystoreCertificate(String name, MqcloudKeystoreCertificateArgs args)
public MqcloudKeystoreCertificate(String name, MqcloudKeystoreCertificateArgs args, CustomResourceOptions options)
type: ibm:MqcloudKeystoreCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MqcloudKeystoreCertificateArgs
- 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 MqcloudKeystoreCertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MqcloudKeystoreCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MqcloudKeystoreCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MqcloudKeystoreCertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mqcloudKeystoreCertificateResource = new Ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateResource", new()
{
CertificateFile = "string",
Label = "string",
QueueManagerId = "string",
ServiceInstanceGuid = "string",
Configs = new[]
{
new Ibm.Inputs.MqcloudKeystoreCertificateConfigArgs
{
Ams = new[]
{
new Ibm.Inputs.MqcloudKeystoreCertificateConfigAmArgs
{
Channels = new[]
{
new Ibm.Inputs.MqcloudKeystoreCertificateConfigAmChannelArgs
{
Name = "string",
},
},
},
},
},
},
MqcloudKeystoreCertificateId = "string",
});
example, err := ibm.NewMqcloudKeystoreCertificate(ctx, "mqcloudKeystoreCertificateResource", &ibm.MqcloudKeystoreCertificateArgs{
CertificateFile: pulumi.String("string"),
Label: pulumi.String("string"),
QueueManagerId: pulumi.String("string"),
ServiceInstanceGuid: pulumi.String("string"),
Configs: ibm.MqcloudKeystoreCertificateConfigArray{
&ibm.MqcloudKeystoreCertificateConfigArgs{
Ams: ibm.MqcloudKeystoreCertificateConfigAmArray{
&ibm.MqcloudKeystoreCertificateConfigAmArgs{
Channels: ibm.MqcloudKeystoreCertificateConfigAmChannelArray{
&ibm.MqcloudKeystoreCertificateConfigAmChannelArgs{
Name: pulumi.String("string"),
},
},
},
},
},
},
MqcloudKeystoreCertificateId: pulumi.String("string"),
})
var mqcloudKeystoreCertificateResource = new MqcloudKeystoreCertificate("mqcloudKeystoreCertificateResource", MqcloudKeystoreCertificateArgs.builder()
.certificateFile("string")
.label("string")
.queueManagerId("string")
.serviceInstanceGuid("string")
.configs(MqcloudKeystoreCertificateConfigArgs.builder()
.ams(MqcloudKeystoreCertificateConfigAmArgs.builder()
.channels(MqcloudKeystoreCertificateConfigAmChannelArgs.builder()
.name("string")
.build())
.build())
.build())
.mqcloudKeystoreCertificateId("string")
.build());
mqcloud_keystore_certificate_resource = ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateResource",
certificate_file="string",
label="string",
queue_manager_id="string",
service_instance_guid="string",
configs=[{
"ams": [{
"channels": [{
"name": "string",
}],
}],
}],
mqcloud_keystore_certificate_id="string")
const mqcloudKeystoreCertificateResource = new ibm.MqcloudKeystoreCertificate("mqcloudKeystoreCertificateResource", {
certificateFile: "string",
label: "string",
queueManagerId: "string",
serviceInstanceGuid: "string",
configs: [{
ams: [{
channels: [{
name: "string",
}],
}],
}],
mqcloudKeystoreCertificateId: "string",
});
type: ibm:MqcloudKeystoreCertificate
properties:
certificateFile: string
configs:
- ams:
- channels:
- name: string
label: string
mqcloudKeystoreCertificateId: string
queueManagerId: string
serviceInstanceGuid: string
MqcloudKeystoreCertificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MqcloudKeystoreCertificate resource accepts the following input properties:
- 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
- Configs
List<Mqcloud
Keystore Certificate Config> - (List) The configuration details for this certificate. Nested schema for config:
- Mqcloud
Keystore stringCertificate Id - The unique identifier of the mqcloud_keystore_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
- Configs
[]Mqcloud
Keystore Certificate Config Args - (List) The configuration details for this certificate. Nested schema for config:
- Mqcloud
Keystore stringCertificate Id - The unique identifier of the mqcloud_keystore_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
- configs
List<Mqcloud
Keystore Certificate Config> - (List) The configuration details for this certificate. Nested schema for config:
- mqcloud
Keystore StringCertificate Id - The unique identifier of the mqcloud_keystore_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
- configs
Mqcloud
Keystore Certificate Config[] - (List) The configuration details for this certificate. Nested schema for config:
- mqcloud
Keystore stringCertificate Id - The unique identifier of the mqcloud_keystore_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
- configs
Sequence[Mqcloud
Keystore Certificate Config Args] - (List) The configuration details for this certificate. Nested schema for config:
- mqcloud_
keystore_ strcertificate_ id - The unique identifier of the mqcloud_keystore_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
- configs List<Property Map>
- (List) The configuration details for this certificate. Nested schema for config:
- mqcloud
Keystore StringCertificate Id - The unique identifier of the mqcloud_keystore_certificate.
Outputs
All input properties are implicitly available as output properties. Additionally, the MqcloudKeystoreCertificate resource produces the following output properties:
- 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:
key_store
.
- Constraints: Allowable values are:
- Dns
Names List<string> - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- Dns
Names doubleTotal Count - (Integer) The total count of dns names.
- 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 key store certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - (Boolean) Indicates whether it is the queue manager's default certificate.
- Issued string
- (String) Date 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.
- 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:
key_store
.
- Constraints: Allowable values are:
- Dns
Names []string - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- Dns
Names float64Total Count - (Integer) The total count of dns names.
- 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 key store certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - (Boolean) Indicates whether it is the queue manager's default certificate.
- Issued string
- (String) Date 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.
- 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:
key_store
.
- Constraints: Allowable values are:
- dns
Names List<String> - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- dns
Names DoubleTotal Count - (Integer) The total count of dns names.
- 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 key store certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - (Boolean) Indicates whether it is the queue manager's default certificate.
- issued String
- (String) Date 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.
- 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:
key_store
.
- Constraints: Allowable values are:
- dns
Names string[] - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- dns
Names numberTotal Count - (Integer) The total count of dns names.
- 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 key store certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - (Boolean) Indicates whether it is the queue manager's default certificate.
- issued string
- (String) Date 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.
- 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:
key_store
.
- Constraints: Allowable values are:
- dns_
names Sequence[str] - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- dns_
names_ floattotal_ count - (Integer) The total count of dns names.
- expiry str
- (String) Expiry date for the certificate.
- fingerprint_
sha256 str - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- href str
- (String) The URL for this key store certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - (Boolean) Indicates whether it is the queue manager's default certificate.
- issued str
- (String) Date certificate was issued.
- issuer_
cn str - (String) Issuer's Common Name.
- issuer_
dn str - (String) Issuer's Distinguished Name.
- subject_
cn str - (String) Subject's Common Name.
- subject_
dn str - (String) Subject's Distinguished Name.
- 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:
key_store
.
- Constraints: Allowable values are:
- dns
Names List<String> - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- dns
Names NumberTotal Count - (Integer) The total count of dns names.
- 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 key store certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - (Boolean) Indicates whether it is the queue manager's default certificate.
- issued String
- (String) Date 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.
Look up Existing MqcloudKeystoreCertificate Resource
Get an existing MqcloudKeystoreCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MqcloudKeystoreCertificateState, opts?: CustomResourceOptions): MqcloudKeystoreCertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_file: Optional[str] = None,
certificate_id: Optional[str] = None,
certificate_type: Optional[str] = None,
configs: Optional[Sequence[MqcloudKeystoreCertificateConfigArgs]] = None,
dns_names: Optional[Sequence[str]] = None,
dns_names_total_count: Optional[float] = None,
expiry: Optional[str] = None,
fingerprint_sha256: Optional[str] = None,
href: Optional[str] = None,
is_default: Optional[bool] = None,
issued: Optional[str] = None,
issuer_cn: Optional[str] = None,
issuer_dn: Optional[str] = None,
label: Optional[str] = None,
mqcloud_keystore_certificate_id: Optional[str] = None,
queue_manager_id: Optional[str] = None,
service_instance_guid: Optional[str] = None,
subject_cn: Optional[str] = None,
subject_dn: Optional[str] = None) -> MqcloudKeystoreCertificate
func GetMqcloudKeystoreCertificate(ctx *Context, name string, id IDInput, state *MqcloudKeystoreCertificateState, opts ...ResourceOption) (*MqcloudKeystoreCertificate, error)
public static MqcloudKeystoreCertificate Get(string name, Input<string> id, MqcloudKeystoreCertificateState? state, CustomResourceOptions? opts = null)
public static MqcloudKeystoreCertificate get(String name, Output<String> id, MqcloudKeystoreCertificateState state, CustomResourceOptions options)
resources: _: type: ibm:MqcloudKeystoreCertificate get: id: ${id}
- name
- 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:
key_store
.
- Constraints: Allowable values are:
- Configs
List<Mqcloud
Keystore Certificate Config> - (List) The configuration details for this certificate. Nested schema for config:
- Dns
Names List<string> - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- Dns
Names doubleTotal Count - (Integer) The total count of dns names.
- 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 key store certificate.
- Is
Default bool - (Boolean) Indicates whether it is the queue manager's default certificate.
- Issued string
- (String) Date 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
Keystore stringCertificate Id - The unique identifier of the mqcloud_keystore_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.
- 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:
key_store
.
- Constraints: Allowable values are:
- Configs
[]Mqcloud
Keystore Certificate Config Args - (List) The configuration details for this certificate. Nested schema for config:
- Dns
Names []string - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- Dns
Names float64Total Count - (Integer) The total count of dns names.
- 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 key store certificate.
- Is
Default bool - (Boolean) Indicates whether it is the queue manager's default certificate.
- Issued string
- (String) Date 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
Keystore stringCertificate Id - The unique identifier of the mqcloud_keystore_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.
- 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:
key_store
.
- Constraints: Allowable values are:
- configs
List<Mqcloud
Keystore Certificate Config> - (List) The configuration details for this certificate. Nested schema for config:
- dns
Names List<String> - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- dns
Names DoubleTotal Count - (Integer) The total count of dns names.
- 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 key store certificate.
- is
Default Boolean - (Boolean) Indicates whether it is the queue manager's default certificate.
- issued String
- (String) Date 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
Keystore StringCertificate Id - The unique identifier of the mqcloud_keystore_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.
- 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:
key_store
.
- Constraints: Allowable values are:
- configs
Mqcloud
Keystore Certificate Config[] - (List) The configuration details for this certificate. Nested schema for config:
- dns
Names string[] - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- dns
Names numberTotal Count - (Integer) The total count of dns names.
- 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 key store certificate.
- is
Default boolean - (Boolean) Indicates whether it is the queue manager's default certificate.
- issued string
- (String) Date 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
Keystore stringCertificate Id - The unique identifier of the mqcloud_keystore_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.
- 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:
key_store
.
- Constraints: Allowable values are:
- configs
Sequence[Mqcloud
Keystore Certificate Config Args] - (List) The configuration details for this certificate. Nested schema for config:
- dns_
names Sequence[str] - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- dns_
names_ floattotal_ count - (Integer) The total count of dns names.
- expiry str
- (String) Expiry date for the certificate.
- fingerprint_
sha256 str - (String) Fingerprint SHA256.
- Constraints: The value must match regular expression
/^[A-F0-9]{2}(:[A-F0-9]{2}){31}$/
.
- Constraints: The value must match regular expression
- href str
- (String) The URL for this key store certificate.
- is_
default bool - (Boolean) Indicates whether it is the queue manager's default certificate.
- issued str
- (String) Date certificate was issued.
- issuer_
cn str - (String) Issuer's Common Name.
- issuer_
dn str - (String) Issuer's Distinguished Name.
- label str
- The label to use for the certificate to be uploaded.
- Constraints: The maximum length is
64
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.]*$/
.
- Constraints: The maximum length is
- mqcloud_
keystore_ strcertificate_ id - The unique identifier of the mqcloud_keystore_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.
- 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:
key_store
.
- Constraints: Allowable values are:
- configs List<Property Map>
- (List) The configuration details for this certificate. Nested schema for config:
- dns
Names List<String> - (List) The list of DNS names.
- Constraints: The maximum length is
200
items. The minimum length is0
items.
- Constraints: The maximum length is
- dns
Names NumberTotal Count - (Integer) The total count of dns names.
- 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 key store certificate.
- is
Default Boolean - (Boolean) Indicates whether it is the queue manager's default certificate.
- issued String
- (String) Date 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
Keystore StringCertificate Id - The unique identifier of the mqcloud_keystore_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.
Supporting Types
MqcloudKeystoreCertificateConfig, MqcloudKeystoreCertificateConfigArgs
- Ams
List<Mqcloud
Keystore Certificate Config Am> - (List) A list of channels that are configured with this certificate. Nested schema for ams:
- Ams
[]Mqcloud
Keystore Certificate Config Am - (List) A list of channels that are configured with this certificate. Nested schema for ams:
- ams
List<Mqcloud
Keystore Certificate Config Am> - (List) A list of channels that are configured with this certificate. Nested schema for ams:
- ams
Mqcloud
Keystore Certificate Config Am[] - (List) A list of channels that are configured with this certificate. Nested schema for ams:
- ams
Sequence[Mqcloud
Keystore Certificate Config Am] - (List) A list of channels that are configured with this certificate. Nested schema for ams:
- ams List<Property Map>
- (List) A list of channels that are configured with this certificate. Nested schema for ams:
MqcloudKeystoreCertificateConfigAm, MqcloudKeystoreCertificateConfigAmArgs
- Channels
List<Mqcloud
Keystore Certificate Config Am Channel> - (List) A list of channels that are configured with this certificate.
- Constraints: The maximum length is
999999999
items. The minimum length is0
items. Nested schema for channels:
- Constraints: The maximum length is
- Channels
[]Mqcloud
Keystore Certificate Config Am Channel - (List) A list of channels that are configured with this certificate.
- Constraints: The maximum length is
999999999
items. The minimum length is0
items. Nested schema for channels:
- Constraints: The maximum length is
- channels
List<Mqcloud
Keystore Certificate Config Am Channel> - (List) A list of channels that are configured with this certificate.
- Constraints: The maximum length is
999999999
items. The minimum length is0
items. Nested schema for channels:
- Constraints: The maximum length is
- channels
Mqcloud
Keystore Certificate Config Am Channel[] - (List) A list of channels that are configured with this certificate.
- Constraints: The maximum length is
999999999
items. The minimum length is0
items. Nested schema for channels:
- Constraints: The maximum length is
- channels
Sequence[Mqcloud
Keystore Certificate Config Am Channel] - (List) A list of channels that are configured with this certificate.
- Constraints: The maximum length is
999999999
items. The minimum length is0
items. Nested schema for channels:
- Constraints: The maximum length is
- channels List<Property Map>
- (List) A list of channels that are configured with this certificate.
- Constraints: The maximum length is
999999999
items. The minimum length is0
items. Nested schema for channels:
- Constraints: The maximum length is
MqcloudKeystoreCertificateConfigAmChannel, MqcloudKeystoreCertificateConfigAmChannelArgs
- Name string
- (String) The name of the channel.
- Constraints: The maximum length is
20
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\/%]*$/
.
- Constraints: The maximum length is
- Name string
- (String) The name of the channel.
- Constraints: The maximum length is
20
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\/%]*$/
.
- Constraints: The maximum length is
- name String
- (String) The name of the channel.
- Constraints: The maximum length is
20
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\/%]*$/
.
- Constraints: The maximum length is
- name string
- (String) The name of the channel.
- Constraints: The maximum length is
20
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\/%]*$/
.
- Constraints: The maximum length is
- name str
- (String) The name of the channel.
- Constraints: The maximum length is
20
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\/%]*$/
.
- Constraints: The maximum length is
- name String
- (String) The name of the channel.
- Constraints: The maximum length is
20
characters. The minimum length is1
character. The value must match regular expression/^[a-zA-Z0-9_.\/%]*$/
.
- Constraints: The maximum length is
Import
Important Note
When configuring the
ibm_mqcloud_keystore_certificate
resource in the root module:
Ensure to set the
certificate_file
value to an empty string (certificate_file=""
). This step is crucial as we are not downloading the certificate to the local system.
Syntax
```sh $ pulumi import ibm:index/mqcloudKeystoreCertificate:MqcloudKeystoreCertificate mqcloud_keystore_certificate <service_instance_guid>/<queue_manager_id>/<certificate_id> ```
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.