1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. UniversalSslSetting
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
cloudflare logo
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleUniversalSslSetting = new cloudflare.UniversalSslSetting("example_universal_ssl_setting", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        enabled: true,
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_universal_ssl_setting = cloudflare.UniversalSslSetting("example_universal_ssl_setting",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        enabled=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewUniversalSslSetting(ctx, "example_universal_ssl_setting", &cloudflare.UniversalSslSettingArgs{
    			ZoneId:  pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Enabled: pulumi.Bool(true),
    		})
    		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 exampleUniversalSslSetting = new Cloudflare.UniversalSslSetting("example_universal_ssl_setting", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            Enabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.UniversalSslSetting;
    import com.pulumi.cloudflare.UniversalSslSettingArgs;
    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 exampleUniversalSslSetting = new UniversalSslSetting("exampleUniversalSslSetting", UniversalSslSettingArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .enabled(true)
                .build());
    
        }
    }
    
    resources:
      exampleUniversalSslSetting:
        type: cloudflare:UniversalSslSetting
        name: example_universal_ssl_setting
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          enabled: true
    

    Create UniversalSslSetting Resource

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

    Constructor syntax

    new UniversalSslSetting(name: string, args: UniversalSslSettingArgs, opts?: CustomResourceOptions);
    @overload
    def UniversalSslSetting(resource_name: str,
                            args: UniversalSslSettingArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def UniversalSslSetting(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            zone_id: Optional[str] = None,
                            enabled: Optional[bool] = None)
    func NewUniversalSslSetting(ctx *Context, name string, args UniversalSslSettingArgs, opts ...ResourceOption) (*UniversalSslSetting, error)
    public UniversalSslSetting(string name, UniversalSslSettingArgs args, CustomResourceOptions? opts = null)
    public UniversalSslSetting(String name, UniversalSslSettingArgs args)
    public UniversalSslSetting(String name, UniversalSslSettingArgs args, CustomResourceOptions options)
    
    type: cloudflare:UniversalSslSetting
    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 UniversalSslSettingArgs
    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 UniversalSslSettingArgs
    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 UniversalSslSettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UniversalSslSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UniversalSslSettingArgs
    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 universalSslSettingResource = new Cloudflare.UniversalSslSetting("universalSslSettingResource", new()
    {
        ZoneId = "string",
        Enabled = false,
    });
    
    example, err := cloudflare.NewUniversalSslSetting(ctx, "universalSslSettingResource", &cloudflare.UniversalSslSettingArgs{
    	ZoneId:  pulumi.String("string"),
    	Enabled: pulumi.Bool(false),
    })
    
    var universalSslSettingResource = new UniversalSslSetting("universalSslSettingResource", UniversalSslSettingArgs.builder()
        .zoneId("string")
        .enabled(false)
        .build());
    
    universal_ssl_setting_resource = cloudflare.UniversalSslSetting("universalSslSettingResource",
        zone_id="string",
        enabled=False)
    
    const universalSslSettingResource = new cloudflare.UniversalSslSetting("universalSslSettingResource", {
        zoneId: "string",
        enabled: false,
    });
    
    type: cloudflare:UniversalSslSetting
    properties:
        enabled: false
        zoneId: string
    

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

    ZoneId string
    Identifier.
    Enabled bool
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    ZoneId string
    Identifier.
    Enabled bool
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    zoneId String
    Identifier.
    enabled Boolean
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    zoneId string
    Identifier.
    enabled boolean
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    zone_id str
    Identifier.
    enabled bool
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    zoneId String
    Identifier.
    enabled Boolean
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing UniversalSslSetting Resource

    Get an existing UniversalSslSetting 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?: UniversalSslSettingState, opts?: CustomResourceOptions): UniversalSslSetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            zone_id: Optional[str] = None) -> UniversalSslSetting
    func GetUniversalSslSetting(ctx *Context, name string, id IDInput, state *UniversalSslSettingState, opts ...ResourceOption) (*UniversalSslSetting, error)
    public static UniversalSslSetting Get(string name, Input<string> id, UniversalSslSettingState? state, CustomResourceOptions? opts = null)
    public static UniversalSslSetting get(String name, Output<String> id, UniversalSslSettingState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:UniversalSslSetting    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:
    Enabled bool
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    ZoneId string
    Identifier.
    Enabled bool
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    ZoneId string
    Identifier.
    enabled Boolean
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    zoneId String
    Identifier.
    enabled boolean
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    zoneId string
    Identifier.
    enabled bool
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    zone_id str
    Identifier.
    enabled Boolean
    Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
    zoneId String
    Identifier.

    Import

    $ pulumi import cloudflare:index/universalSslSetting:UniversalSslSetting example '<zone_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 v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate