GetCertificate

Get information on a certificate. This data source provides the name, type, state, domains, expiry date, and the sha1 fingerprint as configured on your DigitalOcean account. This is useful if the certificate in question is not managed by this provider or you need to utilize any of the certificates data.

An error is triggered if the provided certificate name does not exist.

Example Usage

using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(DigitalOcean.GetCertificate.InvokeAsync(new DigitalOcean.GetCertificateArgs
        {
            Name = "example",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_digitalocean as digitalocean

example = digitalocean.get_certificate(name="example")
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";

const example = pulumi.output(digitalocean.getCertificate({
    name: "example",
}, { async: true }));

Using GetCertificate

function getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
function  get_certificate(name=None, opts=None)
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:

Name string

The name of certificate.

Name string

The name of certificate.

name string

The name of certificate.

name str

The name of certificate.

GetCertificate Result

The following output properties are available:

Domains List<string>
Id string

The provider-assigned unique ID for this managed resource.

Name string
NotAfter string
Sha1Fingerprint string
State string
Type string
Domains []string
Id string

The provider-assigned unique ID for this managed resource.

Name string
NotAfter string
Sha1Fingerprint string
State string
Type string
domains string[]
id string

The provider-assigned unique ID for this managed resource.

name string
notAfter string
sha1Fingerprint string
state string
type string
domains List[str]
id str

The provider-assigned unique ID for this managed resource.

name str
not_after str
sha1_fingerprint str
state str
type str

Package Details

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