1. Packages
  2. DNSimple Provider
  3. API Docs
  4. getCertificate
DNSimple v5.0.0 published on Tuesday, Dec 30, 2025 by Pulumi
dnsimple logo
DNSimple v5.0.0 published on Tuesday, Dec 30, 2025 by Pulumi

    Get information about a DNSimple SSL certificate.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dnsimple from "@pulumi/dnsimple";
    
    const example = dnsimple.getCertificate({
        domain: "example.com",
        certificateId: 1234,
    });
    
    import pulumi
    import pulumi_dnsimple as dnsimple
    
    example = dnsimple.get_certificate(domain="example.com",
        certificate_id=1234)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dnsimple/sdk/v5/go/dnsimple"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dnsimple.GetCertificate(ctx, &dnsimple.GetCertificateArgs{
    			Domain:        "example.com",
    			CertificateId: 1234,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DNSimple = Pulumi.DNSimple;
    
    return await Deployment.RunAsync(() => 
    {
        var example = DNSimple.GetCertificate.Invoke(new()
        {
            Domain = "example.com",
            CertificateId = 1234,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dnsimple.DnsimpleFunctions;
    import com.pulumi.dnsimple.inputs.GetCertificateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = DnsimpleFunctions.getCertificate(GetCertificateArgs.builder()
                .domain("example.com")
                .certificateId(1234)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: dnsimple:getCertificate
          arguments:
            domain: example.com
            certificateId: 1234
    

    Using getCertificate

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCertificate(args: GetCertificateArgs, opts?: InvokeOptions): Promise<GetCertificateResult>
    function getCertificateOutput(args: GetCertificateOutputArgs, opts?: InvokeOptions): Output<GetCertificateResult>
    def get_certificate(certificate_id: Optional[int] = None,
                        domain: Optional[str] = None,
                        timeouts: Optional[GetCertificateTimeouts] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCertificateResult
    def get_certificate_output(certificate_id: Optional[pulumi.Input[int]] = None,
                        domain: Optional[pulumi.Input[str]] = None,
                        timeouts: Optional[pulumi.Input[GetCertificateTimeoutsArgs]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetCertificateResult]
    func GetCertificate(ctx *Context, args *GetCertificateArgs, opts ...InvokeOption) (*GetCertificateResult, error)
    func GetCertificateOutput(ctx *Context, args *GetCertificateOutputArgs, opts ...InvokeOption) GetCertificateResultOutput

    > Note: This function is named GetCertificate in the Go SDK.

    public static class GetCertificate 
    {
        public static Task<GetCertificateResult> InvokeAsync(GetCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetCertificateResult> Invoke(GetCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
    public static Output<GetCertificateResult> getCertificate(GetCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dnsimple:index/getCertificate:getCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateId int
    The ID of the SSL certificate.
    Domain string
    The domain name of the SSL certificate.
    Timeouts Pulumi.DNSimple.Inputs.GetCertificateTimeouts
    (see below for nested schema)
    CertificateId int
    The ID of the SSL certificate.
    Domain string
    The domain name of the SSL certificate.
    Timeouts GetCertificateTimeouts
    (see below for nested schema)
    certificateId Integer
    The ID of the SSL certificate.
    domain String
    The domain name of the SSL certificate.
    timeouts GetCertificateTimeouts
    (see below for nested schema)
    certificateId number
    The ID of the SSL certificate.
    domain string
    The domain name of the SSL certificate.
    timeouts GetCertificateTimeouts
    (see below for nested schema)
    certificate_id int
    The ID of the SSL certificate.
    domain str
    The domain name of the SSL certificate.
    timeouts GetCertificateTimeouts
    (see below for nested schema)
    certificateId Number
    The ID of the SSL certificate.
    domain String
    The domain name of the SSL certificate.
    timeouts Property Map
    (see below for nested schema)

    getCertificate Result

    The following output properties are available:

    CertificateChains List<string>
    A list of certificates that make up the certificate chain.
    CertificateId int
    Domain string
    Id string
    The certificate ID.
    PrivateKey string
    The corresponding private key for the SSL certificate.
    RootCertificate string
    The root certificate of the issuing CA.
    ServerCertificate string
    The SSL certificate.
    Timeouts Pulumi.DNSimple.Outputs.GetCertificateTimeouts
    CertificateChains []string
    A list of certificates that make up the certificate chain.
    CertificateId int
    Domain string
    Id string
    The certificate ID.
    PrivateKey string
    The corresponding private key for the SSL certificate.
    RootCertificate string
    The root certificate of the issuing CA.
    ServerCertificate string
    The SSL certificate.
    Timeouts GetCertificateTimeouts
    certificateChains List<String>
    A list of certificates that make up the certificate chain.
    certificateId Integer
    domain String
    id String
    The certificate ID.
    privateKey String
    The corresponding private key for the SSL certificate.
    rootCertificate String
    The root certificate of the issuing CA.
    serverCertificate String
    The SSL certificate.
    timeouts GetCertificateTimeouts
    certificateChains string[]
    A list of certificates that make up the certificate chain.
    certificateId number
    domain string
    id string
    The certificate ID.
    privateKey string
    The corresponding private key for the SSL certificate.
    rootCertificate string
    The root certificate of the issuing CA.
    serverCertificate string
    The SSL certificate.
    timeouts GetCertificateTimeouts
    certificate_chains Sequence[str]
    A list of certificates that make up the certificate chain.
    certificate_id int
    domain str
    id str
    The certificate ID.
    private_key str
    The corresponding private key for the SSL certificate.
    root_certificate str
    The root certificate of the issuing CA.
    server_certificate str
    The SSL certificate.
    timeouts GetCertificateTimeouts
    certificateChains List<String>
    A list of certificates that make up the certificate chain.
    certificateId Number
    domain String
    id String
    The certificate ID.
    privateKey String
    The corresponding private key for the SSL certificate.
    rootCertificate String
    The root certificate of the issuing CA.
    serverCertificate String
    The SSL certificate.
    timeouts Property Map

    Supporting Types

    GetCertificateTimeouts

    Read string
    (String) - The timeout for the read operation, e.g., 5m.
    Read string
    (String) - The timeout for the read operation, e.g., 5m.
    read String
    (String) - The timeout for the read operation, e.g., 5m.
    read string
    (String) - The timeout for the read operation, e.g., 5m.
    read str
    (String) - The timeout for the read operation, e.g., 5m.
    read String
    (String) - The timeout for the read operation, e.g., 5m.

    Package Details

    Repository
    DNSimple pulumi/pulumi-dnsimple
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dnsimple Terraform Provider.
    dnsimple logo
    DNSimple v5.0.0 published on Tuesday, Dec 30, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate