Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

CertRequest

Create a CertRequest Resource

new CertRequest(name: string, args: CertRequestArgs, opts?: CustomResourceOptions);
def CertRequest(resource_name: str, opts: Optional[ResourceOptions] = None, dns_names: Optional[Sequence[str]] = None, ip_addresses: Optional[Sequence[str]] = None, key_algorithm: Optional[str] = None, private_key_pem: Optional[str] = None, subjects: Optional[Sequence[CertRequestSubjectArgs]] = None, uris: Optional[Sequence[str]] = None)
func NewCertRequest(ctx *Context, name string, args CertRequestArgs, opts ...ResourceOption) (*CertRequest, error)
public CertRequest(string name, CertRequestArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args CertRequestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CertRequestArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CertRequestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

CertRequest Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The CertRequest resource accepts the following input properties:

KeyAlgorithm string

The name of the algorithm for the key provided in private_key_pem.

PrivateKeyPem string

PEM-encoded private key that the certificate will belong to

Subjects List<CertRequestSubjectArgs>

The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.

DnsNames List<string>

List of DNS names for which a certificate is being requested.

IpAddresses List<string>

List of IP addresses for which a certificate is being requested.

Uris List<string>

List of URIs for which a certificate is being requested.

KeyAlgorithm string

The name of the algorithm for the key provided in private_key_pem.

PrivateKeyPem string

PEM-encoded private key that the certificate will belong to

Subjects []CertRequestSubject

The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.

DnsNames []string

List of DNS names for which a certificate is being requested.

IpAddresses []string

List of IP addresses for which a certificate is being requested.

Uris []string

List of URIs for which a certificate is being requested.

keyAlgorithm string

The name of the algorithm for the key provided in private_key_pem.

privateKeyPem string

PEM-encoded private key that the certificate will belong to

subjects CertRequestSubject[]

The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.

dnsNames string[]

List of DNS names for which a certificate is being requested.

ipAddresses string[]

List of IP addresses for which a certificate is being requested.

uris string[]

List of URIs for which a certificate is being requested.

key_algorithm str

The name of the algorithm for the key provided in private_key_pem.

private_key_pem str

PEM-encoded private key that the certificate will belong to

subjects Sequence[CertRequestSubjectArgs]

The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.

dns_names Sequence[str]

List of DNS names for which a certificate is being requested.

ip_addresses Sequence[str]

List of IP addresses for which a certificate is being requested.

uris Sequence[str]

List of URIs for which a certificate is being requested.

Outputs

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

CertRequestPem string

The certificate request data in PEM format.

Id string
The provider-assigned unique ID for this managed resource.
CertRequestPem string

The certificate request data in PEM format.

Id string
The provider-assigned unique ID for this managed resource.
certRequestPem string

The certificate request data in PEM format.

id string
The provider-assigned unique ID for this managed resource.
cert_request_pem str

The certificate request data in PEM format.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing CertRequest Resource

Get an existing CertRequest 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?: CertRequestState, opts?: CustomResourceOptions): CertRequest
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, cert_request_pem: Optional[str] = None, dns_names: Optional[Sequence[str]] = None, ip_addresses: Optional[Sequence[str]] = None, key_algorithm: Optional[str] = None, private_key_pem: Optional[str] = None, subjects: Optional[Sequence[CertRequestSubjectArgs]] = None, uris: Optional[Sequence[str]] = None) -> CertRequest
func GetCertRequest(ctx *Context, name string, id IDInput, state *CertRequestState, opts ...ResourceOption) (*CertRequest, error)
public static CertRequest Get(string name, Input<string> id, CertRequestState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

CertRequestPem string

The certificate request data in PEM format.

DnsNames List<string>

List of DNS names for which a certificate is being requested.

IpAddresses List<string>

List of IP addresses for which a certificate is being requested.

KeyAlgorithm string

The name of the algorithm for the key provided in private_key_pem.

PrivateKeyPem string

PEM-encoded private key that the certificate will belong to

Subjects List<CertRequestSubjectArgs>

The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.

Uris List<string>

List of URIs for which a certificate is being requested.

CertRequestPem string

The certificate request data in PEM format.

DnsNames []string

List of DNS names for which a certificate is being requested.

IpAddresses []string

List of IP addresses for which a certificate is being requested.

KeyAlgorithm string

The name of the algorithm for the key provided in private_key_pem.

PrivateKeyPem string

PEM-encoded private key that the certificate will belong to

Subjects []CertRequestSubject

The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.

Uris []string

List of URIs for which a certificate is being requested.

certRequestPem string

The certificate request data in PEM format.

dnsNames string[]

List of DNS names for which a certificate is being requested.

ipAddresses string[]

List of IP addresses for which a certificate is being requested.

keyAlgorithm string

The name of the algorithm for the key provided in private_key_pem.

privateKeyPem string

PEM-encoded private key that the certificate will belong to

subjects CertRequestSubject[]

The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.

uris string[]

List of URIs for which a certificate is being requested.

cert_request_pem str

The certificate request data in PEM format.

dns_names Sequence[str]

List of DNS names for which a certificate is being requested.

ip_addresses Sequence[str]

List of IP addresses for which a certificate is being requested.

key_algorithm str

The name of the algorithm for the key provided in private_key_pem.

private_key_pem str

PEM-encoded private key that the certificate will belong to

subjects Sequence[CertRequestSubjectArgs]

The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.

uris Sequence[str]

List of URIs for which a certificate is being requested.

Supporting Types

CertRequestSubject

CommonName string
Country string
Locality string
Organization string
OrganizationalUnit string
PostalCode string
Province string
SerialNumber string
StreetAddresses List<string>

Package Details

Repository
https://github.com/pulumi/pulumi-tls
License
Apache-2.0
Notes
This Pulumi package is based on the tls Terraform Provider.