1. Packages
  2. Gcore Provider
  3. API Docs
  4. getCdnCertificate
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core

    CDN SSL certificates enable HTTPS content delivery, supporting both uploaded certificates and automated Let’s Encrypt provisioning.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleCdnCertificate = gcore.getCdnCertificate({
        sslId: 0,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cdn_certificate = gcore.get_cdn_certificate(ssl_id=0)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.LookupCdnCertificate(ctx, &gcore.LookupCdnCertificateArgs{
    			SslId: 0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCdnCertificate = Gcore.GetCdnCertificate.Invoke(new()
        {
            SslId = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetCdnCertificateArgs;
    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 exampleCdnCertificate = GcoreFunctions.getCdnCertificate(GetCdnCertificateArgs.builder()
                .sslId(0)
                .build());
    
        }
    }
    
    variables:
      exampleCdnCertificate:
        fn::invoke:
          function: gcore:getCdnCertificate
          arguments:
            sslId: 0
    

    Using getCdnCertificate

    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 getCdnCertificate(args: GetCdnCertificateArgs, opts?: InvokeOptions): Promise<GetCdnCertificateResult>
    function getCdnCertificateOutput(args: GetCdnCertificateOutputArgs, opts?: InvokeOptions): Output<GetCdnCertificateResult>
    def get_cdn_certificate(ssl_id: Optional[float] = None,
                            opts: Optional[InvokeOptions] = None) -> GetCdnCertificateResult
    def get_cdn_certificate_output(ssl_id: Optional[pulumi.Input[float]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetCdnCertificateResult]
    func LookupCdnCertificate(ctx *Context, args *LookupCdnCertificateArgs, opts ...InvokeOption) (*LookupCdnCertificateResult, error)
    func LookupCdnCertificateOutput(ctx *Context, args *LookupCdnCertificateOutputArgs, opts ...InvokeOption) LookupCdnCertificateResultOutput

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

    public static class GetCdnCertificate 
    {
        public static Task<GetCdnCertificateResult> InvokeAsync(GetCdnCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetCdnCertificateResult> Invoke(GetCdnCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdnCertificateResult> getCdnCertificate(GetCdnCertificateArgs args, InvokeOptions options)
    public static Output<GetCdnCertificateResult> getCdnCertificate(GetCdnCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCdnCertificate:getCdnCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SslId double
    SslId float64
    sslId Double
    sslId number
    ssl_id float
    sslId Number

    getCdnCertificate Result

    The following output properties are available:

    Automated bool
    How the SSL certificate was issued.
    CertIssuer string
    CertSubjectAlt string
    CertSubjectCn string
    Deleted bool
    HasRelatedResources bool
    Id double
    Name string
    SslCertificateChain string
    SslId double
    ValidityNotAfter string
    ValidityNotBefore string
    Automated bool
    How the SSL certificate was issued.
    CertIssuer string
    CertSubjectAlt string
    CertSubjectCn string
    Deleted bool
    HasRelatedResources bool
    Id float64
    Name string
    SslCertificateChain string
    SslId float64
    ValidityNotAfter string
    ValidityNotBefore string
    automated Boolean
    How the SSL certificate was issued.
    certIssuer String
    certSubjectAlt String
    certSubjectCn String
    deleted Boolean
    hasRelatedResources Boolean
    id Double
    name String
    sslCertificateChain String
    sslId Double
    validityNotAfter String
    validityNotBefore String
    automated boolean
    How the SSL certificate was issued.
    certIssuer string
    certSubjectAlt string
    certSubjectCn string
    deleted boolean
    hasRelatedResources boolean
    id number
    name string
    sslCertificateChain string
    sslId number
    validityNotAfter string
    validityNotBefore string
    automated Boolean
    How the SSL certificate was issued.
    certIssuer String
    certSubjectAlt String
    certSubjectCn String
    deleted Boolean
    hasRelatedResources Boolean
    id Number
    name String
    sslCertificateChain String
    sslId Number
    validityNotAfter String
    validityNotBefore String

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    Viewing docs for gcore 2.0.0-alpha.3
    published on Monday, Mar 30, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.