1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. KeylessCertificate
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

cloudflare.KeylessCertificate

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi

    Provides a resource, that manages Keyless certificates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = new cloudflare.KeylessCertificate("example", {
        zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
        bundleMethod: "ubiquitous",
        name: "example.com Keyless SSL",
        host: "example.com",
        port: 24008,
        enabled: true,
        certificate: "-----INSERT CERTIFICATE-----",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.KeylessCertificate("example",
        zone_id="0da42c8d2132a9ddaf714f9e7c920711",
        bundle_method="ubiquitous",
        name="example.com Keyless SSL",
        host="example.com",
        port=24008,
        enabled=True,
        certificate="-----INSERT CERTIFICATE-----")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewKeylessCertificate(ctx, "example", &cloudflare.KeylessCertificateArgs{
    			ZoneId:       pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
    			BundleMethod: pulumi.String("ubiquitous"),
    			Name:         pulumi.String("example.com Keyless SSL"),
    			Host:         pulumi.String("example.com"),
    			Port:         pulumi.Int(24008),
    			Enabled:      pulumi.Bool(true),
    			Certificate:  pulumi.String("-----INSERT CERTIFICATE-----"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Cloudflare.KeylessCertificate("example", new()
        {
            ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
            BundleMethod = "ubiquitous",
            Name = "example.com Keyless SSL",
            Host = "example.com",
            Port = 24008,
            Enabled = true,
            Certificate = "-----INSERT CERTIFICATE-----",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.KeylessCertificate;
    import com.pulumi.cloudflare.KeylessCertificateArgs;
    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) {
            var example = new KeylessCertificate("example", KeylessCertificateArgs.builder()
                .zoneId("0da42c8d2132a9ddaf714f9e7c920711")
                .bundleMethod("ubiquitous")
                .name("example.com Keyless SSL")
                .host("example.com")
                .port(24008)
                .enabled(true)
                .certificate("-----INSERT CERTIFICATE-----")
                .build());
    
        }
    }
    
    resources:
      example:
        type: cloudflare:KeylessCertificate
        properties:
          zoneId: 0da42c8d2132a9ddaf714f9e7c920711
          bundleMethod: ubiquitous
          name: example.com Keyless SSL
          host: example.com
          port: 24008
          enabled: true
          certificate: '-----INSERT CERTIFICATE-----'
    

    Create KeylessCertificate Resource

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

    Constructor syntax

    new KeylessCertificate(name: string, args: KeylessCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def KeylessCertificate(resource_name: str,
                           args: KeylessCertificateArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def KeylessCertificate(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           certificate: Optional[str] = None,
                           host: Optional[str] = None,
                           zone_id: Optional[str] = None,
                           bundle_method: Optional[str] = None,
                           enabled: Optional[bool] = None,
                           name: Optional[str] = None,
                           port: Optional[int] = None)
    func NewKeylessCertificate(ctx *Context, name string, args KeylessCertificateArgs, opts ...ResourceOption) (*KeylessCertificate, error)
    public KeylessCertificate(string name, KeylessCertificateArgs args, CustomResourceOptions? opts = null)
    public KeylessCertificate(String name, KeylessCertificateArgs args)
    public KeylessCertificate(String name, KeylessCertificateArgs args, CustomResourceOptions options)
    
    type: cloudflare:KeylessCertificate
    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 KeylessCertificateArgs
    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 KeylessCertificateArgs
    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 KeylessCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KeylessCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KeylessCertificateArgs
    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 keylessCertificateResource = new Cloudflare.KeylessCertificate("keylessCertificateResource", new()
    {
        Certificate = "string",
        Host = "string",
        ZoneId = "string",
        BundleMethod = "string",
        Enabled = false,
        Name = "string",
        Port = 0,
    });
    
    example, err := cloudflare.NewKeylessCertificate(ctx, "keylessCertificateResource", &cloudflare.KeylessCertificateArgs{
    	Certificate:  pulumi.String("string"),
    	Host:         pulumi.String("string"),
    	ZoneId:       pulumi.String("string"),
    	BundleMethod: pulumi.String("string"),
    	Enabled:      pulumi.Bool(false),
    	Name:         pulumi.String("string"),
    	Port:         pulumi.Int(0),
    })
    
    var keylessCertificateResource = new KeylessCertificate("keylessCertificateResource", KeylessCertificateArgs.builder()
        .certificate("string")
        .host("string")
        .zoneId("string")
        .bundleMethod("string")
        .enabled(false)
        .name("string")
        .port(0)
        .build());
    
    keyless_certificate_resource = cloudflare.KeylessCertificate("keylessCertificateResource",
        certificate="string",
        host="string",
        zone_id="string",
        bundle_method="string",
        enabled=False,
        name="string",
        port=0)
    
    const keylessCertificateResource = new cloudflare.KeylessCertificate("keylessCertificateResource", {
        certificate: "string",
        host: "string",
        zoneId: "string",
        bundleMethod: "string",
        enabled: false,
        name: "string",
        port: 0,
    });
    
    type: cloudflare:KeylessCertificate
    properties:
        bundleMethod: string
        certificate: string
        enabled: false
        host: string
        name: string
        port: 0
        zoneId: string
    

    KeylessCertificate 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 KeylessCertificate resource accepts the following input properties:

    Certificate string
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    Host string
    The KeyLess SSL host.
    ZoneId string
    The zone identifier to target for the resource.
    BundleMethod string
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    Enabled bool
    Whether the KeyLess SSL is on.
    Name string
    The KeyLess SSL name.
    Port int
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    Certificate string
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    Host string
    The KeyLess SSL host.
    ZoneId string
    The zone identifier to target for the resource.
    BundleMethod string
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    Enabled bool
    Whether the KeyLess SSL is on.
    Name string
    The KeyLess SSL name.
    Port int
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    certificate String
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    host String
    The KeyLess SSL host.
    zoneId String
    The zone identifier to target for the resource.
    bundleMethod String
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    enabled Boolean
    Whether the KeyLess SSL is on.
    name String
    The KeyLess SSL name.
    port Integer
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    certificate string
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    host string
    The KeyLess SSL host.
    zoneId string
    The zone identifier to target for the resource.
    bundleMethod string
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    enabled boolean
    Whether the KeyLess SSL is on.
    name string
    The KeyLess SSL name.
    port number
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    certificate str
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    host str
    The KeyLess SSL host.
    zone_id str
    The zone identifier to target for the resource.
    bundle_method str
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    enabled bool
    Whether the KeyLess SSL is on.
    name str
    The KeyLess SSL name.
    port int
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    certificate String
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    host String
    The KeyLess SSL host.
    zoneId String
    The zone identifier to target for the resource.
    bundleMethod String
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    enabled Boolean
    Whether the KeyLess SSL is on.
    name String
    The KeyLess SSL name.
    port Number
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the KeyLess SSL.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the KeyLess SSL.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the KeyLess SSL.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the KeyLess SSL.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the KeyLess SSL.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the KeyLess SSL.

    Look up Existing KeylessCertificate Resource

    Get an existing KeylessCertificate 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?: KeylessCertificateState, opts?: CustomResourceOptions): KeylessCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bundle_method: Optional[str] = None,
            certificate: Optional[str] = None,
            enabled: Optional[bool] = None,
            host: Optional[str] = None,
            name: Optional[str] = None,
            port: Optional[int] = None,
            status: Optional[str] = None,
            zone_id: Optional[str] = None) -> KeylessCertificate
    func GetKeylessCertificate(ctx *Context, name string, id IDInput, state *KeylessCertificateState, opts ...ResourceOption) (*KeylessCertificate, error)
    public static KeylessCertificate Get(string name, Input<string> id, KeylessCertificateState? state, CustomResourceOptions? opts = null)
    public static KeylessCertificate get(String name, Output<String> id, KeylessCertificateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    BundleMethod string
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    Certificate string
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    Enabled bool
    Whether the KeyLess SSL is on.
    Host string
    The KeyLess SSL host.
    Name string
    The KeyLess SSL name.
    Port int
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    Status string
    Status of the KeyLess SSL.
    ZoneId string
    The zone identifier to target for the resource.
    BundleMethod string
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    Certificate string
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    Enabled bool
    Whether the KeyLess SSL is on.
    Host string
    The KeyLess SSL host.
    Name string
    The KeyLess SSL name.
    Port int
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    Status string
    Status of the KeyLess SSL.
    ZoneId string
    The zone identifier to target for the resource.
    bundleMethod String
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    certificate String
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    enabled Boolean
    Whether the KeyLess SSL is on.
    host String
    The KeyLess SSL host.
    name String
    The KeyLess SSL name.
    port Integer
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    status String
    Status of the KeyLess SSL.
    zoneId String
    The zone identifier to target for the resource.
    bundleMethod string
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    certificate string
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    enabled boolean
    Whether the KeyLess SSL is on.
    host string
    The KeyLess SSL host.
    name string
    The KeyLess SSL name.
    port number
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    status string
    Status of the KeyLess SSL.
    zoneId string
    The zone identifier to target for the resource.
    bundle_method str
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    certificate str
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    enabled bool
    Whether the KeyLess SSL is on.
    host str
    The KeyLess SSL host.
    name str
    The KeyLess SSL name.
    port int
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    status str
    Status of the KeyLess SSL.
    zone_id str
    The zone identifier to target for the resource.
    bundleMethod String
    A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it. Available values: ubiquitous, optimal, force. Defaults to ubiquitous. Modifying this attribute will force creation of a new resource.
    certificate String
    The zone's SSL certificate or SSL certificate and intermediate(s). Modifying this attribute will force creation of a new resource.
    enabled Boolean
    Whether the KeyLess SSL is on.
    host String
    The KeyLess SSL host.
    name String
    The KeyLess SSL name.
    port Number
    The KeyLess SSL port used to communicate between Cloudflare and the client's KeyLess SSL server. Defaults to 24008.
    status String
    Status of the KeyLess SSL.
    zoneId String
    The zone identifier to target for the resource.

    Import

    $ pulumi import cloudflare:index/keylessCertificate:KeylessCertificate example <zone_id>/<keyless_certificate_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v5.43.0 published on Wednesday, Nov 13, 2024 by Pulumi