1. Packages
  2. Gcorelabs Provider
  3. API Docs
  4. CdnSslcert
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

gcorelabs.CdnSslcert

Explore with Pulumi AI

gcorelabs logo
gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core

    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.index.Gcore_cdn_sslcert("cdnoptCert", {
        name: "Test cert for cdnopt_bookatest_by",
        cert: cert,
        privateKey: privateKey,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    config = pulumi.Config()
    cert = config.require("cert")
    private_key = config.require("privateKey")
    cdnopt_cert = gcore.index.Gcore_cdn_sslcert("cdnoptCert",
        name=Test cert for cdnopt_bookatest_by,
        cert=cert,
        private_key=private_key)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcore/sdk/go/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.NewGcore_cdn_sslcert(ctx, "cdnoptCert", &gcore.Gcore_cdn_sslcertArgs{
    			Name:       "Test cert for cdnopt_bookatest_by",
    			Cert:       cert,
    			PrivateKey: privateKey,
    		})
    		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 config = new Config();
        var cert = config.Require("cert");
        var privateKey = config.Require("privateKey");
        var cdnoptCert = new Gcore.Index.Gcore_cdn_sslcert("cdnoptCert", new()
        {
            Name = "Test cert for cdnopt_bookatest_by",
            Cert = cert,
            PrivateKey = privateKey,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.gcore_cdn_sslcert;
    import com.pulumi.gcore.Gcore_cdn_sslcertArgs;
    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 Gcore_cdn_sslcert("cdnoptCert", Gcore_cdn_sslcertArgs.builder()
                .name("Test cert for cdnopt_bookatest_by")
                .cert(cert)
                .privateKey(privateKey)
                .build());
    
        }
    }
    
    configuration:
      cert:
        type: string
      privateKey:
        type: string
    resources:
      cdnoptCert:
        type: gcore:gcore_cdn_sslcert
        properties:
          name: Test cert for cdnopt_bookatest_by
          cert: ${cert}
          privateKey: ${privateKey}
    

    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: CdnSslcertArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdnSslcert(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cert: Optional[str] = None,
                   private_key: Optional[str] = None,
                   cdn_sslcert_id: Optional[str] = None,
                   name: Optional[str] = None)
    func NewCdnSslcert(ctx *Context, name string, args CdnSslcertArgs, opts ...ResourceOption) (*CdnSslcert, error)
    public CdnSslcert(string name, CdnSslcertArgs args, CustomResourceOptions? opts = null)
    public CdnSslcert(String name, CdnSslcertArgs args)
    public CdnSslcert(String name, CdnSslcertArgs args, CustomResourceOptions options)
    
    type: gcorelabs:CdnSslcert
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name 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 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 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 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 String
    The unique name of the resource.
    args 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 Gcorelabs.CdnSslcert("cdnSslcertResource", new()
    {
        Cert = "string",
        PrivateKey = "string",
        CdnSslcertId = "string",
        Name = "string",
    });
    
    example, err := gcorelabs.NewCdnSslcert(ctx, "cdnSslcertResource", &gcorelabs.CdnSslcertArgs{
    	Cert:         pulumi.String("string"),
    	PrivateKey:   pulumi.String("string"),
    	CdnSslcertId: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    })
    
    var cdnSslcertResource = new CdnSslcert("cdnSslcertResource", CdnSslcertArgs.builder()
        .cert("string")
        .privateKey("string")
        .cdnSslcertId("string")
        .name("string")
        .build());
    
    cdn_sslcert_resource = gcorelabs.CdnSslcert("cdnSslcertResource",
        cert="string",
        private_key="string",
        cdn_sslcert_id="string",
        name="string")
    
    const cdnSslcertResource = new gcorelabs.CdnSslcert("cdnSslcertResource", {
        cert: "string",
        privateKey: "string",
        cdnSslcertId: "string",
        name: "string",
    });
    
    type: gcorelabs:CdnSslcert
    properties:
        cdnSslcertId: string
        cert: string
        name: string
        privateKey: string
    

    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:

    Cert string
    The public part of the SSL certificate. All chain of the SSL certificate should be added.
    PrivateKey string
    The private key of the SSL certificate.
    CdnSslcertId string
    The ID of this resource.
    Name string
    Name of the SSL certificate. Must be unique.
    Cert string
    The public part of the SSL certificate. All chain of the SSL certificate should be added.
    PrivateKey string
    The private key of the SSL certificate.
    CdnSslcertId string
    The ID of this resource.
    Name string
    Name of the SSL certificate. Must be unique.
    cert String
    The public part of the SSL certificate. All chain of the SSL certificate should be added.
    privateKey String
    The private key of the SSL certificate.
    cdnSslcertId String
    The ID of this resource.
    name String
    Name of the SSL certificate. Must be unique.
    cert string
    The public part of the SSL certificate. All chain of the SSL certificate should be added.
    privateKey string
    The private key of the SSL certificate.
    cdnSslcertId string
    The ID of this resource.
    name string
    Name of the SSL certificate. Must be unique.
    cert str
    The public part of the SSL certificate. All chain of the SSL certificate should be added.
    private_key str
    The private key of the SSL certificate.
    cdn_sslcert_id str
    The ID of this resource.
    name str
    Name of the SSL certificate. Must be unique.
    cert String
    The public part of the SSL certificate. All chain of the SSL certificate should be added.
    privateKey String
    The private key of the SSL certificate.
    cdnSslcertId String
    The ID of this resource.
    name String
    Name of the SSL certificate. Must be unique.

    Outputs

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

    Automated bool
    The way SSL certificate was issued.
    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.
    Automated bool
    The way SSL certificate was issued.
    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.
    automated Boolean
    The way SSL certificate was issued.
    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.
    automated boolean
    The way SSL certificate was issued.
    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.
    automated bool
    The way SSL certificate was issued.
    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.
    automated Boolean
    The way SSL certificate was issued.
    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) -> 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: gcorelabs:CdnSslcert    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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.
    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.
    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.
    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.
    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.
    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.

    Package Details

    Repository
    gcorelabs g-core/terraform-provider-gcorelabs
    License
    Notes
    This Pulumi package is based on the gcorelabs Terraform Provider.
    gcorelabs logo
    gcorelabs 0.3.63 published on Monday, Apr 14, 2025 by g-core