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

GetCertificate

Provides details about a specific Hetzner Cloud Certificate.

Using GetCertificate

function getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
def get_certificate(id: Optional[int] = None, name: Optional[str] = None, with_selector: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetCertificateResult
func LookupCertificate(ctx *Context, args *LookupCertificateArgs, opts ...InvokeOption) (*LookupCertificateResult, error)

Note: This function is named LookupCertificate in the Go SDK.

public static class GetCertificate {
    public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Id int

ID of the certificate.

Name string

Name of the certificate.

WithSelector string

Label selector

Id int

ID of the certificate.

Name string

Name of the certificate.

WithSelector string

Label selector

id number

ID of the certificate.

name string

Name of the certificate.

withSelector string

Label selector

id int

ID of the certificate.

name str

Name of the certificate.

with_selector str

Label selector

GetCertificate Result

The following output properties are available:

Certificate string

(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.

Id int

(int) Unique ID of the certificate.

Labels Dictionary<string, object>

(map) User-defined labels (key-value pairs) assigned to 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).

Name string

(string) Name of the Certificate.

WithSelector string
Certificate string

(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.

Id int

(int) Unique ID of the certificate.

Labels map[string]interface{}

(map) User-defined labels (key-value pairs) assigned to 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).

Name string

(string) Name of the Certificate.

WithSelector string
certificate string

(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.

id number

(int) Unique ID of the certificate.

labels {[key: string]: any}

(map) User-defined labels (key-value pairs) assigned to 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).

name string

(string) Name of the Certificate.

withSelector string
certificate str

(string) 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.

id int

(int) Unique ID of the certificate.

labels Mapping[str, Any]

(map) User-defined labels (key-value pairs) assigned to 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).

name str

(string) Name of the Certificate.

with_selector str

Package Details

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