1. Packages
  2. Packages
  3. Gcore Provider
  4. API Docs
  5. getCdnCertificates
Viewing docs for gcore 2.0.0-alpha.15
published on Thursday, Aug 6, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.15
published on Thursday, Aug 6, 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 exampleCdnCertificates = gcore.getCdnCertificates({
        automated: true,
        resourceId: 0,
        validityNotAfterLte: "validity_not_after_lte",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_cdn_certificates = gcore.get_cdn_certificates(automated=True,
        resource_id=0,
        validity_not_after_lte="validity_not_after_lte")
    
    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.GetCdnCertificates(ctx, &gcore.GetCdnCertificatesArgs{
    			Automated:           pulumi.BoolRef(true),
    			ResourceId:          pulumi.Float64Ref(0),
    			ValidityNotAfterLte: pulumi.StringRef("validity_not_after_lte"),
    		}, 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 exampleCdnCertificates = Gcore.GetCdnCertificates.Invoke(new()
        {
            Automated = true,
            ResourceId = 0,
            ValidityNotAfterLte = "validity_not_after_lte",
        });
    
    });
    
    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.GetCdnCertificatesArgs;
    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 exampleCdnCertificates = GcoreFunctions.getCdnCertificates(GetCdnCertificatesArgs.builder()
                .automated(true)
                .resourceId(0)
                .validityNotAfterLte("validity_not_after_lte")
                .build());
    
        }
    }
    
    variables:
      exampleCdnCertificates:
        fn::invoke:
          function: gcore:getCdnCertificates
          arguments:
            automated: true
            resourceId: 0
            validityNotAfterLte: validity_not_after_lte
    
    Example coming soon!
    

    Using getCdnCertificates

    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 getCdnCertificates(args: GetCdnCertificatesArgs, opts?: InvokeOptions): Promise<GetCdnCertificatesResult>
    function getCdnCertificatesOutput(args: GetCdnCertificatesOutputArgs, opts?: InvokeOptions): Output<GetCdnCertificatesResult>
    def get_cdn_certificates(automated: Optional[bool] = None,
                             max_items: Optional[float] = None,
                             resource_id: Optional[float] = None,
                             validity_not_after_lte: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCdnCertificatesResult
    def get_cdn_certificates_output(automated: pulumi.Input[Optional[bool]] = None,
                             max_items: pulumi.Input[Optional[float]] = None,
                             resource_id: pulumi.Input[Optional[float]] = None,
                             validity_not_after_lte: pulumi.Input[Optional[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCdnCertificatesResult]
    func GetCdnCertificates(ctx *Context, args *GetCdnCertificatesArgs, opts ...InvokeOption) (*GetCdnCertificatesResult, error)
    func GetCdnCertificatesOutput(ctx *Context, args *GetCdnCertificatesOutputArgs, opts ...InvokeOption) GetCdnCertificatesResultOutput

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

    public static class GetCdnCertificates 
    {
        public static Task<GetCdnCertificatesResult> InvokeAsync(GetCdnCertificatesArgs args, InvokeOptions? opts = null)
        public static Output<GetCdnCertificatesResult> Invoke(GetCdnCertificatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdnCertificatesResult> getCdnCertificates(GetCdnCertificatesArgs args, InvokeOptions options)
    public static Output<GetCdnCertificatesResult> getCdnCertificates(GetCdnCertificatesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getCdnCertificates:getCdnCertificates
      arguments:
        # arguments dictionary
    data "gcore_get_cdn_certificates" "name" {
        # arguments
    }

    The following arguments are supported:

    Automated bool
    How the SSL certificate was issued.
    MaxItems double
    ResourceId double
    ValidityNotAfterLte string
    Automated bool
    How the SSL certificate was issued.
    MaxItems float64
    ResourceId float64
    ValidityNotAfterLte string
    automated bool
    How the SSL certificate was issued.
    max_items number
    resource_id number
    validity_not_after_lte string
    automated Boolean
    How the SSL certificate was issued.
    maxItems Double
    resourceId Double
    validityNotAfterLte String
    automated boolean
    How the SSL certificate was issued.
    maxItems number
    resourceId number
    validityNotAfterLte string
    automated bool
    How the SSL certificate was issued.
    max_items float
    resource_id float
    validity_not_after_lte str
    automated Boolean
    How the SSL certificate was issued.
    maxItems Number
    resourceId Number
    validityNotAfterLte String

    getCdnCertificates Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetCdnCertificatesItem>
    Automated bool
    How the SSL certificate was issued.
    MaxItems double
    ResourceId double
    ValidityNotAfterLte string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetCdnCertificatesItem
    Automated bool
    How the SSL certificate was issued.
    MaxItems float64
    ResourceId float64
    ValidityNotAfterLte string
    id string
    The provider-assigned unique ID for this managed resource.
    items list(object)
    automated bool
    How the SSL certificate was issued.
    max_items number
    resource_id number
    validity_not_after_lte string
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetCdnCertificatesItem>
    automated Boolean
    How the SSL certificate was issued.
    maxItems Double
    resourceId Double
    validityNotAfterLte String
    id string
    The provider-assigned unique ID for this managed resource.
    items GetCdnCertificatesItem[]
    automated boolean
    How the SSL certificate was issued.
    maxItems number
    resourceId number
    validityNotAfterLte string
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetCdnCertificatesItem]
    automated bool
    How the SSL certificate was issued.
    max_items float
    resource_id float
    validity_not_after_lte str
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    automated Boolean
    How the SSL certificate was issued.
    maxItems Number
    resourceId Number
    validityNotAfterLte String

    Supporting Types

    GetCdnCertificatesItem

    Automated bool
    How the SSL certificate was issued.
    CertIssuer string
    Name of the certification center issued the SSL certificate.
    CertSubjectAlt string
    Alternative domain names that the SSL certificate secures.
    CertSubjectCn string
    Domain name that the SSL certificate secures.
    Deleted bool

    Defines whether the certificate has been deleted. Parameter is deprecated.

    Possible values:

    • true - Certificate has been deleted.
    • false - Certificate has not been deleted.
    HasRelatedResources bool

    Defines whether the SSL certificate is used by a CDN resource.

    Possible values:

    • true - Certificate is used by a CDN resource.
    • false - Certificate is not used by a CDN resource.
    Id double
    SSL certificate ID.
    Name string
    SSL certificate name.
    SslCertificateChain string
    Parameter is deprecated.
    ValidityNotAfter string
    Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)
    ValidityNotBefore string
    Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)
    Automated bool
    How the SSL certificate was issued.
    CertIssuer string
    Name of the certification center issued the SSL certificate.
    CertSubjectAlt string
    Alternative domain names that the SSL certificate secures.
    CertSubjectCn string
    Domain name that the SSL certificate secures.
    Deleted bool

    Defines whether the certificate has been deleted. Parameter is deprecated.

    Possible values:

    • true - Certificate has been deleted.
    • false - Certificate has not been deleted.
    HasRelatedResources bool

    Defines whether the SSL certificate is used by a CDN resource.

    Possible values:

    • true - Certificate is used by a CDN resource.
    • false - Certificate is not used by a CDN resource.
    Id float64
    SSL certificate ID.
    Name string
    SSL certificate name.
    SslCertificateChain string
    Parameter is deprecated.
    ValidityNotAfter string
    Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)
    ValidityNotBefore string
    Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)
    automated bool
    How the SSL certificate was issued.
    cert_issuer string
    Name of the certification center issued the SSL certificate.
    cert_subject_alt string
    Alternative domain names that the SSL certificate secures.
    cert_subject_cn string
    Domain name that the SSL certificate secures.
    deleted bool

    Defines whether the certificate has been deleted. Parameter is deprecated.

    Possible values:

    • true - Certificate has been deleted.
    • false - Certificate has not been deleted.
    has_related_resources bool

    Defines whether the SSL certificate is used by a CDN resource.

    Possible values:

    • true - Certificate is used by a CDN resource.
    • false - Certificate is not used by a CDN resource.
    id number
    SSL certificate ID.
    name string
    SSL certificate name.
    ssl_certificate_chain string
    Parameter is deprecated.
    validity_not_after string
    Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)
    validity_not_before string
    Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)
    automated Boolean
    How the SSL certificate was issued.
    certIssuer String
    Name of the certification center issued the SSL certificate.
    certSubjectAlt String
    Alternative domain names that the SSL certificate secures.
    certSubjectCn String
    Domain name that the SSL certificate secures.
    deleted Boolean

    Defines whether the certificate has been deleted. Parameter is deprecated.

    Possible values:

    • true - Certificate has been deleted.
    • false - Certificate has not been deleted.
    hasRelatedResources Boolean

    Defines whether the SSL certificate is used by a CDN resource.

    Possible values:

    • true - Certificate is used by a CDN resource.
    • false - Certificate is not used by a CDN resource.
    id Double
    SSL certificate ID.
    name String
    SSL certificate name.
    sslCertificateChain String
    Parameter is deprecated.
    validityNotAfter String
    Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)
    validityNotBefore String
    Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)
    automated boolean
    How the SSL certificate was issued.
    certIssuer string
    Name of the certification center issued the SSL certificate.
    certSubjectAlt string
    Alternative domain names that the SSL certificate secures.
    certSubjectCn string
    Domain name that the SSL certificate secures.
    deleted boolean

    Defines whether the certificate has been deleted. Parameter is deprecated.

    Possible values:

    • true - Certificate has been deleted.
    • false - Certificate has not been deleted.
    hasRelatedResources boolean

    Defines whether the SSL certificate is used by a CDN resource.

    Possible values:

    • true - Certificate is used by a CDN resource.
    • false - Certificate is not used by a CDN resource.
    id number
    SSL certificate ID.
    name string
    SSL certificate name.
    sslCertificateChain string
    Parameter is deprecated.
    validityNotAfter string
    Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)
    validityNotBefore string
    Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)
    automated bool
    How the SSL certificate was issued.
    cert_issuer str
    Name of the certification center issued the SSL certificate.
    cert_subject_alt str
    Alternative domain names that the SSL certificate secures.
    cert_subject_cn str
    Domain name that the SSL certificate secures.
    deleted bool

    Defines whether the certificate has been deleted. Parameter is deprecated.

    Possible values:

    • true - Certificate has been deleted.
    • false - Certificate has not been deleted.
    has_related_resources bool

    Defines whether the SSL certificate is used by a CDN resource.

    Possible values:

    • true - Certificate is used by a CDN resource.
    • false - Certificate is not used by a CDN resource.
    id float
    SSL certificate ID.
    name str
    SSL certificate name.
    ssl_certificate_chain str
    Parameter is deprecated.
    validity_not_after str
    Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)
    validity_not_before str
    Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)
    automated Boolean
    How the SSL certificate was issued.
    certIssuer String
    Name of the certification center issued the SSL certificate.
    certSubjectAlt String
    Alternative domain names that the SSL certificate secures.
    certSubjectCn String
    Domain name that the SSL certificate secures.
    deleted Boolean

    Defines whether the certificate has been deleted. Parameter is deprecated.

    Possible values:

    • true - Certificate has been deleted.
    • false - Certificate has not been deleted.
    hasRelatedResources Boolean

    Defines whether the SSL certificate is used by a CDN resource.

    Possible values:

    • true - Certificate is used by a CDN resource.
    • false - Certificate is not used by a CDN resource.
    id Number
    SSL certificate ID.
    name String
    SSL certificate name.
    sslCertificateChain String
    Parameter is deprecated.
    validityNotAfter String
    Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)
    validityNotBefore String
    Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)

    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.15
    published on Thursday, Aug 6, 2026 by g-core

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial