1. Packages
  2. Gcore Provider
  3. API Docs
  4. CdnSslcert
gcore 0.21.0 published on Tuesday, Apr 22, 2025 by g-core

gcore.CdnSslcert

Explore with Pulumi AI

Represent CDN SSL Certificate

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";

const config = new pulumi.Config();
const cert = config.require("cert");
const privateKey = config.require("privateKey");
const cdnoptCert = new gcore.CdnSslcert("cdnoptCert", {
    cert: cert,
    privateKey: privateKey,
});
const letsEncryptCert = new gcore.CdnSslcert("letsEncryptCert", {automated: true});
Copy
import pulumi
import pulumi_gcore as gcore

config = pulumi.Config()
cert = config.require("cert")
private_key = config.require("privateKey")
cdnopt_cert = gcore.CdnSslcert("cdnoptCert",
    cert=cert,
    private_key=private_key)
lets_encrypt_cert = gcore.CdnSslcert("letsEncryptCert", automated=True)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		cert := cfg.Require("cert")
		privateKey := cfg.Require("privateKey")
		_, err := gcore.NewCdnSslcert(ctx, "cdnoptCert", &gcore.CdnSslcertArgs{
			Cert:       pulumi.String(cert),
			PrivateKey: pulumi.String(privateKey),
		})
		if err != nil {
			return err
		}
		_, err = gcore.NewCdnSslcert(ctx, "letsEncryptCert", &gcore.CdnSslcertArgs{
			Automated: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var cert = config.Require("cert");
    var privateKey = config.Require("privateKey");
    var cdnoptCert = new Gcore.CdnSslcert("cdnoptCert", new()
    {
        Cert = cert,
        PrivateKey = privateKey,
    });

    var letsEncryptCert = new Gcore.CdnSslcert("letsEncryptCert", new()
    {
        Automated = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnSslcert;
import com.pulumi.gcore.CdnSslcertArgs;
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 config = ctx.config();
        final var cert = config.get("cert");
        final var privateKey = config.get("privateKey");
        var cdnoptCert = new CdnSslcert("cdnoptCert", CdnSslcertArgs.builder()
            .cert(cert)
            .privateKey(privateKey)
            .build());

        var letsEncryptCert = new CdnSslcert("letsEncryptCert", CdnSslcertArgs.builder()
            .automated(true)
            .build());

    }
}
Copy
configuration:
  cert:
    type: string
  privateKey:
    type: string
resources:
  cdnoptCert:
    type: gcore:CdnSslcert
    properties:
      cert: ${cert}
      privateKey: ${privateKey}
  letsEncryptCert:
    type: gcore:CdnSslcert
    properties:
      automated: true
Copy

Create CdnSslcert Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CdnSslcert(name: string, args?: CdnSslcertArgs, opts?: CustomResourceOptions);
@overload
def CdnSslcert(resource_name: str,
               args: Optional[CdnSslcertArgs] = None,
               opts: Optional[ResourceOptions] = None)

@overload
def CdnSslcert(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               automated: Optional[bool] = None,
               cdn_sslcert_id: Optional[str] = None,
               cert: Optional[str] = None,
               name: Optional[str] = None,
               private_key: Optional[str] = None,
               validate_root_ca: Optional[bool] = None)
func NewCdnSslcert(ctx *Context, name string, args *CdnSslcertArgs, opts ...ResourceOption) (*CdnSslcert, error)
public CdnSslcert(string name, CdnSslcertArgs? args = null, CustomResourceOptions? opts = null)
public CdnSslcert(String name, CdnSslcertArgs args)
public CdnSslcert(String name, CdnSslcertArgs args, CustomResourceOptions options)
type: gcore:CdnSslcert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args CdnSslcertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args CdnSslcertArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args CdnSslcertArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args CdnSslcertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CdnSslcertArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var cdnSslcertResource = new Gcore.CdnSslcert("cdnSslcertResource", new()
{
    Automated = false,
    CdnSslcertId = "string",
    Cert = "string",
    Name = "string",
    PrivateKey = "string",
    ValidateRootCa = false,
});
Copy
example, err := gcore.NewCdnSslcert(ctx, "cdnSslcertResource", &gcore.CdnSslcertArgs{
	Automated:      pulumi.Bool(false),
	CdnSslcertId:   pulumi.String("string"),
	Cert:           pulumi.String("string"),
	Name:           pulumi.String("string"),
	PrivateKey:     pulumi.String("string"),
	ValidateRootCa: pulumi.Bool(false),
})
Copy
var cdnSslcertResource = new CdnSslcert("cdnSslcertResource", CdnSslcertArgs.builder()
    .automated(false)
    .cdnSslcertId("string")
    .cert("string")
    .name("string")
    .privateKey("string")
    .validateRootCa(false)
    .build());
Copy
cdn_sslcert_resource = gcore.CdnSslcert("cdnSslcertResource",
    automated=False,
    cdn_sslcert_id="string",
    cert="string",
    name="string",
    private_key="string",
    validate_root_ca=False)
Copy
const cdnSslcertResource = new gcore.CdnSslcert("cdnSslcertResource", {
    automated: false,
    cdnSslcertId: "string",
    cert: "string",
    name: "string",
    privateKey: "string",
    validateRootCa: false,
});
Copy
type: gcore:CdnSslcert
properties:
    automated: false
    cdnSslcertId: string
    cert: string
    name: string
    privateKey: string
    validateRootCa: false
Copy

CdnSslcert Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CdnSslcert resource accepts the following input properties:

Automated bool
The way SSL certificate was issued.
CdnSslcertId string
The ID of this resource.
Cert string
The public part of the SSL certificate. All chain of the SSL certificate should be added.
Name string
Name of the SSL certificate. Must be unique.
PrivateKey string
The private key of the SSL certificate.
ValidateRootCa bool
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
Automated bool
The way SSL certificate was issued.
CdnSslcertId string
The ID of this resource.
Cert string
The public part of the SSL certificate. All chain of the SSL certificate should be added.
Name string
Name of the SSL certificate. Must be unique.
PrivateKey string
The private key of the SSL certificate.
ValidateRootCa bool
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
automated Boolean
The way SSL certificate was issued.
cdnSslcertId String
The ID of this resource.
cert String
The public part of the SSL certificate. All chain of the SSL certificate should be added.
name String
Name of the SSL certificate. Must be unique.
privateKey String
The private key of the SSL certificate.
validateRootCa Boolean
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
automated boolean
The way SSL certificate was issued.
cdnSslcertId string
The ID of this resource.
cert string
The public part of the SSL certificate. All chain of the SSL certificate should be added.
name string
Name of the SSL certificate. Must be unique.
privateKey string
The private key of the SSL certificate.
validateRootCa boolean
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
automated bool
The way SSL certificate was issued.
cdn_sslcert_id str
The ID of this resource.
cert str
The public part of the SSL certificate. All chain of the SSL certificate should be added.
name str
Name of the SSL certificate. Must be unique.
private_key str
The private key of the SSL certificate.
validate_root_ca bool
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
automated Boolean
The way SSL certificate was issued.
cdnSslcertId String
The ID of this resource.
cert String
The public part of the SSL certificate. All chain of the SSL certificate should be added.
name String
Name of the SSL certificate. Must be unique.
privateKey String
The private key of the SSL certificate.
validateRootCa Boolean
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.

Outputs

All input properties are implicitly available as output properties. Additionally, the CdnSslcert resource produces the following output properties:

HasRelatedResources bool
It shows if the SSL certificate is used by a CDN resource.
Id string
The provider-assigned unique ID for this managed resource.
HasRelatedResources bool
It shows if the SSL certificate is used by a CDN resource.
Id string
The provider-assigned unique ID for this managed resource.
hasRelatedResources Boolean
It shows if the SSL certificate is used by a CDN resource.
id String
The provider-assigned unique ID for this managed resource.
hasRelatedResources boolean
It shows if the SSL certificate is used by a CDN resource.
id string
The provider-assigned unique ID for this managed resource.
has_related_resources bool
It shows if the SSL certificate is used by a CDN resource.
id str
The provider-assigned unique ID for this managed resource.
hasRelatedResources Boolean
It shows if the SSL certificate is used by a CDN resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CdnSslcert Resource

Get an existing CdnSslcert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CdnSslcertState, opts?: CustomResourceOptions): CdnSslcert
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        automated: Optional[bool] = None,
        cdn_sslcert_id: Optional[str] = None,
        cert: Optional[str] = None,
        has_related_resources: Optional[bool] = None,
        name: Optional[str] = None,
        private_key: Optional[str] = None,
        validate_root_ca: Optional[bool] = None) -> CdnSslcert
func GetCdnSslcert(ctx *Context, name string, id IDInput, state *CdnSslcertState, opts ...ResourceOption) (*CdnSslcert, error)
public static CdnSslcert Get(string name, Input<string> id, CdnSslcertState? state, CustomResourceOptions? opts = null)
public static CdnSslcert get(String name, Output<String> id, CdnSslcertState state, CustomResourceOptions options)
resources:  _:    type: gcore:CdnSslcert    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Automated bool
The way SSL certificate was issued.
CdnSslcertId string
The ID of this resource.
Cert string
The public part of the SSL certificate. All chain of the SSL certificate should be added.
HasRelatedResources bool
It shows if the SSL certificate is used by a CDN resource.
Name string
Name of the SSL certificate. Must be unique.
PrivateKey string
The private key of the SSL certificate.
ValidateRootCa bool
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
Automated bool
The way SSL certificate was issued.
CdnSslcertId string
The ID of this resource.
Cert string
The public part of the SSL certificate. All chain of the SSL certificate should be added.
HasRelatedResources bool
It shows if the SSL certificate is used by a CDN resource.
Name string
Name of the SSL certificate. Must be unique.
PrivateKey string
The private key of the SSL certificate.
ValidateRootCa bool
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
automated Boolean
The way SSL certificate was issued.
cdnSslcertId String
The ID of this resource.
cert String
The public part of the SSL certificate. All chain of the SSL certificate should be added.
hasRelatedResources Boolean
It shows if the SSL certificate is used by a CDN resource.
name String
Name of the SSL certificate. Must be unique.
privateKey String
The private key of the SSL certificate.
validateRootCa Boolean
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
automated boolean
The way SSL certificate was issued.
cdnSslcertId string
The ID of this resource.
cert string
The public part of the SSL certificate. All chain of the SSL certificate should be added.
hasRelatedResources boolean
It shows if the SSL certificate is used by a CDN resource.
name string
Name of the SSL certificate. Must be unique.
privateKey string
The private key of the SSL certificate.
validateRootCa boolean
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
automated bool
The way SSL certificate was issued.
cdn_sslcert_id str
The ID of this resource.
cert str
The public part of the SSL certificate. All chain of the SSL certificate should be added.
has_related_resources bool
It shows if the SSL certificate is used by a CDN resource.
name str
Name of the SSL certificate. Must be unique.
private_key str
The private key of the SSL certificate.
validate_root_ca bool
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.
automated Boolean
The way SSL certificate was issued.
cdnSslcertId String
The ID of this resource.
cert String
The public part of the SSL certificate. All chain of the SSL certificate should be added.
hasRelatedResources Boolean
It shows if the SSL certificate is used by a CDN resource.
name String
Name of the SSL certificate. Must be unique.
privateKey String
The private key of the SSL certificate.
validateRootCa Boolean
Defines whether to check the SSL certificate for a signature from a trusted certificate authority.

Package Details

Repository
gcore g-core/terraform-provider-gcore
License
Notes
This Pulumi package is based on the gcore Terraform Provider.