1. Packages
  2. DNSimple
  3. API Docs
  4. getCertificate
DNSimple v3.4.2 published on Thursday, Mar 21, 2024 by Pulumi

dnsimple.getCertificate

Explore with Pulumi AI

dnsimple logo
DNSimple v3.4.2 published on Thursday, Mar 21, 2024 by Pulumi

    Provides a DNSimple certificate data source.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dnsimple from "@pulumi/dnsimple";
    
    const foobar = dnsimple.getCertificate({
        certificateId: _var.dnsimple_certificate_id,
        domain: _var.dnsimple_domain,
    });
    
    import pulumi
    import pulumi_dnsimple as dnsimple
    
    foobar = dnsimple.get_certificate(certificate_id=var["dnsimple_certificate_id"],
        domain=var["dnsimple_domain"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dnsimple/sdk/v3/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{
    			CertificateId: _var.Dnsimple_certificate_id,
    			Domain:        _var.Dnsimple_domain,
    		}, 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 foobar = DNSimple.GetCertificate.Invoke(new()
        {
            CertificateId = @var.Dnsimple_certificate_id,
            Domain = @var.Dnsimple_domain,
        });
    
    });
    
    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 foobar = DnsimpleFunctions.getCertificate(GetCertificateArgs.builder()
                .certificateId(var_.dnsimple_certificate_id())
                .domain(var_.dnsimple_domain())
                .build());
    
        }
    }
    
    variables:
      foobar:
        fn::invoke:
          Function: dnsimple:getCertificate
          Arguments:
            certificateId: ${var.dnsimple_certificate_id}
            domain: ${var.dnsimple_domain}
    

    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[str] = None,
                        domain: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetCertificateResult
    def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
                        domain: Optional[pulumi.Input[str]] = 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: dnsimple:index/getCertificate:getCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CertificateId string
    The ID of the SSL Certificate
    Domain string
    The domain of the SSL Certificate
    CertificateId string
    The ID of the SSL Certificate
    Domain string
    The domain of the SSL Certificate
    certificateId String
    The ID of the SSL Certificate
    domain String
    The domain of the SSL Certificate
    certificateId string
    The ID of the SSL Certificate
    domain string
    The domain of the SSL Certificate
    certificate_id str
    The ID of the SSL Certificate
    domain str
    The domain of the SSL Certificate
    certificateId String
    The ID of the SSL Certificate
    domain String
    The domain of the SSL Certificate

    getCertificate Result

    The following output properties are available:

    CertificateChains List<string>
    A list of certificates that make up the chain
    CertificateId string
    Domain string
    Id string
    The provider-assigned unique ID for this managed resource.
    PrivateKey string
    The corresponding Private Key for the SSL Certificate
    RootCertificate string
    The Root Certificate of the issuing CA
    ServerCertificate string
    The SSL Certificate
    CertificateChains []string
    A list of certificates that make up the chain
    CertificateId string
    Domain string
    Id string
    The provider-assigned unique ID for this managed resource.
    PrivateKey string
    The corresponding Private Key for the SSL Certificate
    RootCertificate string
    The Root Certificate of the issuing CA
    ServerCertificate string
    The SSL Certificate
    certificateChains List<String>
    A list of certificates that make up the chain
    certificateId String
    domain String
    id String
    The provider-assigned unique ID for this managed resource.
    privateKey String
    The corresponding Private Key for the SSL Certificate
    rootCertificate String
    The Root Certificate of the issuing CA
    serverCertificate String
    The SSL Certificate
    certificateChains string[]
    A list of certificates that make up the chain
    certificateId string
    domain string
    id string
    The provider-assigned unique ID for this managed resource.
    privateKey string
    The corresponding Private Key for the SSL Certificate
    rootCertificate string
    The Root Certificate of the issuing CA
    serverCertificate string
    The SSL Certificate
    certificate_chains Sequence[str]
    A list of certificates that make up the chain
    certificate_id str
    domain str
    id str
    The provider-assigned unique ID for this managed resource.
    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
    certificateChains List<String>
    A list of certificates that make up the chain
    certificateId String
    domain String
    id String
    The provider-assigned unique ID for this managed resource.
    privateKey String
    The corresponding Private Key for the SSL Certificate
    rootCertificate String
    The Root Certificate of the issuing CA
    serverCertificate String
    The SSL Certificate

    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 v3.4.2 published on Thursday, Mar 21, 2024 by Pulumi