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:
- Key
Algorithm string The name of the algorithm for the key provided in
private_key_pem
.- Private
Key stringPem PEM-encoded private key that the certificate will belong to
- Subjects
List<Cert
Request Subject Args> The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.
- Dns
Names List<string> List of DNS names for which a certificate is being requested.
- Ip
Addresses 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.
- Key
Algorithm string The name of the algorithm for the key provided in
private_key_pem
.- Private
Key stringPem PEM-encoded private key that the certificate will belong to
- Subjects
[]Cert
Request Subject The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.
- Dns
Names []string List of DNS names for which a certificate is being requested.
- Ip
Addresses []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 string The name of the algorithm for the key provided in
private_key_pem
.- private
Key stringPem PEM-encoded private key that the certificate will belong to
- subjects
Cert
Request Subject[] The subject for which a certificate is being requested. This is a nested configuration block whose structure is described below.
- dns
Names string[] List of DNS names for which a certificate is being requested.
- ip
Addresses 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_ strpem PEM-encoded private key that the certificate will belong to
- subjects
Sequence[Cert
Request Subject Args] 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:
- Cert
Request stringPem The certificate request data in PEM format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cert
Request stringPem The certificate request data in PEM format.
- Id string
- The provider-assigned unique ID for this managed resource.
- cert
Request stringPem The certificate request data in PEM format.
- id string
- The provider-assigned unique ID for this managed resource.
- cert_
request_ strpem 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:
- Cert
Request stringPem The certificate request data in PEM format.
- Dns
Names List<string> List of DNS names for which a certificate is being requested.
- Ip
Addresses List<string> List of IP addresses for which a certificate is being requested.
- Key
Algorithm string The name of the algorithm for the key provided in
private_key_pem
.- Private
Key stringPem PEM-encoded private key that the certificate will belong to
- Subjects
List<Cert
Request Subject Args> 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.
- Cert
Request stringPem The certificate request data in PEM format.
- Dns
Names []string List of DNS names for which a certificate is being requested.
- Ip
Addresses []string List of IP addresses for which a certificate is being requested.
- Key
Algorithm string The name of the algorithm for the key provided in
private_key_pem
.- Private
Key stringPem PEM-encoded private key that the certificate will belong to
- Subjects
[]Cert
Request Subject 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 stringPem The certificate request data in PEM format.
- dns
Names string[] List of DNS names for which a certificate is being requested.
- ip
Addresses string[] List of IP addresses for which a certificate is being requested.
- key
Algorithm string The name of the algorithm for the key provided in
private_key_pem
.- private
Key stringPem PEM-encoded private key that the certificate will belong to
- subjects
Cert
Request Subject[] 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_ strpem 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_ strpem PEM-encoded private key that the certificate will belong to
- subjects
Sequence[Cert
Request Subject Args] 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
- Common
Name string - Country string
- Locality string
- Organization string
- Organizational
Unit string - Postal
Code string - Province string
- Serial
Number string - Street
Addresses List<string>
- Common
Name string - Country string
- Locality string
- Organization string
- Organizational
Unit string - Postal
Code string - Province string
- Serial
Number string - Street
Addresses []string
- common
Name string - country string
- locality string
- organization string
- organizational
Unit string - postal
Code string - province string
- serial
Number string - street
Addresses string[]
- common_
name str - country str
- locality str
- organization str
- organizational_
unit str - postal_
code str - province str
- serial_
number str - street_
addresses Sequence[str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-tls
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
tls
Terraform Provider.