UploadedCertificate

Upload a TLS certificate to Hetzner Cloud.

Create a UploadedCertificate Resource

new UploadedCertificate(name: string, args: UploadedCertificateArgs, opts?: CustomResourceOptions);
@overload
def UploadedCertificate(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        certificate: Optional[str] = None,
                        labels: Optional[Mapping[str, Any]] = None,
                        name: Optional[str] = None,
                        private_key: Optional[str] = None)
@overload
def UploadedCertificate(resource_name: str,
                        args: UploadedCertificateArgs,
                        opts: Optional[ResourceOptions] = None)
func NewUploadedCertificate(ctx *Context, name string, args UploadedCertificateArgs, opts ...ResourceOption) (*UploadedCertificate, error)
public UploadedCertificate(string name, UploadedCertificateArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args UploadedCertificateArgs
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 UploadedCertificateArgs
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 UploadedCertificateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args UploadedCertificateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

UploadedCertificate Resource Properties

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

Inputs

The UploadedCertificate resource accepts the following input properties:

Certificate string
PEM encoded TLS certificate.
PrivateKey string
PEM encoded private key belonging to the certificate.
Labels Dictionary<string, object>
User-defined labels (key-value pairs) the certificate should be created with.
Name string
Name of the Certificate.
Certificate string
PEM encoded TLS certificate.
PrivateKey string
PEM encoded private key belonging to the certificate.
Labels map[string]interface{}
User-defined labels (key-value pairs) the certificate should be created with.
Name string
Name of the Certificate.
certificate string
PEM encoded TLS certificate.
privateKey string
PEM encoded private key belonging to the certificate.
labels {[key: string]: any}
User-defined labels (key-value pairs) the certificate should be created with.
name string
Name of the Certificate.
certificate str
PEM encoded TLS certificate.
private_key str
PEM encoded private key belonging to the certificate.
labels Mapping[str, Any]
User-defined labels (key-value pairs) the certificate should be created with.
name str
Name of the Certificate.

Outputs

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

Created string
(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
DomainNames List<string>
(list) Domains and subdomains covered by the certificate.
Fingerprint string
(string) Fingerprint of the certificate.
Id string
The provider-assigned unique ID for this managed resource.
NotValidAfter string
(string) Point in time when the Certificate stops being valid (in ISO-8601 format).
NotValidBefore string
(string) Point in time when the Certificate becomes valid (in ISO-8601 format).
Type string
Created string
(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
DomainNames []string
(list) Domains and subdomains covered by the certificate.
Fingerprint string
(string) Fingerprint of the certificate.
Id string
The provider-assigned unique ID for this managed resource.
NotValidAfter string
(string) Point in time when the Certificate stops being valid (in ISO-8601 format).
NotValidBefore string
(string) Point in time when the Certificate becomes valid (in ISO-8601 format).
Type string
created string
(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
domainNames string[]
(list) Domains and subdomains covered by the certificate.
fingerprint string
(string) Fingerprint of the certificate.
id string
The provider-assigned unique ID for this managed resource.
notValidAfter string
(string) Point in time when the Certificate stops being valid (in ISO-8601 format).
notValidBefore string
(string) Point in time when the Certificate becomes valid (in ISO-8601 format).
type string
created str
(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
domain_names Sequence[str]
(list) Domains and subdomains covered by the certificate.
fingerprint str
(string) Fingerprint of the certificate.
id str
The provider-assigned unique ID for this managed resource.
not_valid_after str
(string) Point in time when the Certificate stops being valid (in ISO-8601 format).
not_valid_before str
(string) Point in time when the Certificate becomes valid (in ISO-8601 format).
type str

Look up an Existing UploadedCertificate Resource

Get an existing UploadedCertificate 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?: UploadedCertificateState, opts?: CustomResourceOptions): UploadedCertificate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificate: Optional[str] = None,
        created: Optional[str] = None,
        domain_names: Optional[Sequence[str]] = None,
        fingerprint: Optional[str] = None,
        labels: Optional[Mapping[str, Any]] = None,
        name: Optional[str] = None,
        not_valid_after: Optional[str] = None,
        not_valid_before: Optional[str] = None,
        private_key: Optional[str] = None,
        type: Optional[str] = None) -> UploadedCertificate
func GetUploadedCertificate(ctx *Context, name string, id IDInput, state *UploadedCertificateState, opts ...ResourceOption) (*UploadedCertificate, error)
public static UploadedCertificate Get(string name, Input<string> id, UploadedCertificateState? 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:

Certificate string
PEM encoded TLS certificate.
Created string
(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
DomainNames List<string>
(list) Domains and subdomains covered by the certificate.
Fingerprint string
(string) Fingerprint of the certificate.
Labels Dictionary<string, object>
User-defined labels (key-value pairs) the certificate should be created with.
Name string
Name of the Certificate.
NotValidAfter string
(string) Point in time when the Certificate stops being valid (in ISO-8601 format).
NotValidBefore string
(string) Point in time when the Certificate becomes valid (in ISO-8601 format).
PrivateKey string
PEM encoded private key belonging to the certificate.
Type string
Certificate string
PEM encoded TLS certificate.
Created string
(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
DomainNames []string
(list) Domains and subdomains covered by the certificate.
Fingerprint string
(string) Fingerprint of the certificate.
Labels map[string]interface{}
User-defined labels (key-value pairs) the certificate should be created with.
Name string
Name of the Certificate.
NotValidAfter string
(string) Point in time when the Certificate stops being valid (in ISO-8601 format).
NotValidBefore string
(string) Point in time when the Certificate becomes valid (in ISO-8601 format).
PrivateKey string
PEM encoded private key belonging to the certificate.
Type string
certificate string
PEM encoded TLS certificate.
created string
(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
domainNames string[]
(list) Domains and subdomains covered by the certificate.
fingerprint string
(string) Fingerprint of the certificate.
labels {[key: string]: any}
User-defined labels (key-value pairs) the certificate should be created with.
name string
Name of the Certificate.
notValidAfter string
(string) Point in time when the Certificate stops being valid (in ISO-8601 format).
notValidBefore string
(string) Point in time when the Certificate becomes valid (in ISO-8601 format).
privateKey string
PEM encoded private key belonging to the certificate.
type string
certificate str
PEM encoded TLS certificate.
created str
(string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format).
domain_names Sequence[str]
(list) Domains and subdomains covered by the certificate.
fingerprint str
(string) Fingerprint of the certificate.
labels Mapping[str, Any]
User-defined labels (key-value pairs) the certificate should be created with.
name str
Name of the Certificate.
not_valid_after str
(string) Point in time when the Certificate stops being valid (in ISO-8601 format).
not_valid_before str
(string) Point in time when the Certificate becomes valid (in ISO-8601 format).
private_key str
PEM encoded private key belonging to the certificate.
type str

Import

Uploaded certificates can be imported using their idhcl

 $ pulumi import hcloud:index/uploadedCertificate:UploadedCertificate sample_certificate <id>

Package Details

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