1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. esa
  5. HttpsBasicConfiguration
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.esa.HttpsBasicConfiguration

Explore with Pulumi AI

Provides a ESA Https Basic Configuration resource.

For information about ESA Https Basic Configuration and how to use it, see What is Https Basic Configuration.

NOTE: Available since v1.243.0.

Example Usage

Basic Usage

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

const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const example = new alicloud.esa.RatePlanInstance("example", {
    type: "NS",
    autoRenew: false,
    period: 1,
    paymentType: "Subscription",
    coverage: "overseas",
    autoPay: true,
    planName: "high",
});
const resourceHttpBasicConfigurationSetExample = new alicloud.esa.Site("resource_HttpBasicConfiguration_set_example", {
    siteName: "gositecdn.cn",
    instanceId: example.id,
    coverage: "overseas",
    accessType: "NS",
});
const _default = new alicloud.esa.HttpsBasicConfiguration("default", {
    https: "on",
    rule: "true",
    ruleName: "example2",
    siteId: resourceHttpBasicConfigurationSetExample.id,
    ruleEnable: "on",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
example = alicloud.esa.RatePlanInstance("example",
    type="NS",
    auto_renew=False,
    period=1,
    payment_type="Subscription",
    coverage="overseas",
    auto_pay=True,
    plan_name="high")
resource_http_basic_configuration_set_example = alicloud.esa.Site("resource_HttpBasicConfiguration_set_example",
    site_name="gositecdn.cn",
    instance_id=example.id,
    coverage="overseas",
    access_type="NS")
default = alicloud.esa.HttpsBasicConfiguration("default",
    https="on",
    rule="true",
    rule_name="example2",
    site_id=resource_http_basic_configuration_set_example.id,
    rule_enable="on")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/esa"
	"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, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		example, err := esa.NewRatePlanInstance(ctx, "example", &esa.RatePlanInstanceArgs{
			Type:        pulumi.String("NS"),
			AutoRenew:   pulumi.Bool(false),
			Period:      pulumi.Int(1),
			PaymentType: pulumi.String("Subscription"),
			Coverage:    pulumi.String("overseas"),
			AutoPay:     pulumi.Bool(true),
			PlanName:    pulumi.String("high"),
		})
		if err != nil {
			return err
		}
		resourceHttpBasicConfigurationSetExample, err := esa.NewSite(ctx, "resource_HttpBasicConfiguration_set_example", &esa.SiteArgs{
			SiteName:   pulumi.String("gositecdn.cn"),
			InstanceId: example.ID(),
			Coverage:   pulumi.String("overseas"),
			AccessType: pulumi.String("NS"),
		})
		if err != nil {
			return err
		}
		_, err = esa.NewHttpsBasicConfiguration(ctx, "default", &esa.HttpsBasicConfigurationArgs{
			Https:      pulumi.String("on"),
			Rule:       pulumi.String("true"),
			RuleName:   pulumi.String("example2"),
			SiteId:     resourceHttpBasicConfigurationSetExample.ID(),
			RuleEnable: pulumi.String("on"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var example = new AliCloud.Esa.RatePlanInstance("example", new()
    {
        Type = "NS",
        AutoRenew = false,
        Period = 1,
        PaymentType = "Subscription",
        Coverage = "overseas",
        AutoPay = true,
        PlanName = "high",
    });

    var resourceHttpBasicConfigurationSetExample = new AliCloud.Esa.Site("resource_HttpBasicConfiguration_set_example", new()
    {
        SiteName = "gositecdn.cn",
        InstanceId = example.Id,
        Coverage = "overseas",
        AccessType = "NS",
    });

    var @default = new AliCloud.Esa.HttpsBasicConfiguration("default", new()
    {
        Https = "on",
        Rule = "true",
        RuleName = "example2",
        SiteId = resourceHttpBasicConfigurationSetExample.Id,
        RuleEnable = "on",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.esa.RatePlanInstance;
import com.pulumi.alicloud.esa.RatePlanInstanceArgs;
import com.pulumi.alicloud.esa.Site;
import com.pulumi.alicloud.esa.SiteArgs;
import com.pulumi.alicloud.esa.HttpsBasicConfiguration;
import com.pulumi.alicloud.esa.HttpsBasicConfigurationArgs;
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 name = config.get("name").orElse("terraform-example");
        var example = new RatePlanInstance("example", RatePlanInstanceArgs.builder()
            .type("NS")
            .autoRenew("false")
            .period("1")
            .paymentType("Subscription")
            .coverage("overseas")
            .autoPay("true")
            .planName("high")
            .build());

        var resourceHttpBasicConfigurationSetExample = new Site("resourceHttpBasicConfigurationSetExample", SiteArgs.builder()
            .siteName("gositecdn.cn")
            .instanceId(example.id())
            .coverage("overseas")
            .accessType("NS")
            .build());

        var default_ = new HttpsBasicConfiguration("default", HttpsBasicConfigurationArgs.builder()
            .https("on")
            .rule("true")
            .ruleName("example2")
            .siteId(resourceHttpBasicConfigurationSetExample.id())
            .ruleEnable("on")
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: terraform-example
resources:
  example:
    type: alicloud:esa:RatePlanInstance
    properties:
      type: NS
      autoRenew: 'false'
      period: '1'
      paymentType: Subscription
      coverage: overseas
      autoPay: 'true'
      planName: high
  resourceHttpBasicConfigurationSetExample:
    type: alicloud:esa:Site
    name: resource_HttpBasicConfiguration_set_example
    properties:
      siteName: gositecdn.cn
      instanceId: ${example.id}
      coverage: overseas
      accessType: NS
  default:
    type: alicloud:esa:HttpsBasicConfiguration
    properties:
      https: on
      rule: 'true'
      ruleName: example2
      siteId: ${resourceHttpBasicConfigurationSetExample.id}
      ruleEnable: on
Copy

Create HttpsBasicConfiguration Resource

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

Constructor syntax

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

@overload
def HttpsBasicConfiguration(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            site_id: Optional[int] = None,
                            http3: Optional[str] = None,
                            http2: Optional[str] = None,
                            ciphersuite: Optional[str] = None,
                            https: Optional[str] = None,
                            ocsp_stapling: Optional[str] = None,
                            rule: Optional[str] = None,
                            rule_enable: Optional[str] = None,
                            rule_name: Optional[str] = None,
                            ciphersuite_group: Optional[str] = None,
                            tls10: Optional[str] = None,
                            tls11: Optional[str] = None,
                            tls12: Optional[str] = None,
                            tls13: Optional[str] = None)
func NewHttpsBasicConfiguration(ctx *Context, name string, args HttpsBasicConfigurationArgs, opts ...ResourceOption) (*HttpsBasicConfiguration, error)
public HttpsBasicConfiguration(string name, HttpsBasicConfigurationArgs args, CustomResourceOptions? opts = null)
public HttpsBasicConfiguration(String name, HttpsBasicConfigurationArgs args)
public HttpsBasicConfiguration(String name, HttpsBasicConfigurationArgs args, CustomResourceOptions options)
type: alicloud:esa:HttpsBasicConfiguration
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 This property is required. HttpsBasicConfigurationArgs
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 This property is required. HttpsBasicConfigurationArgs
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 This property is required. HttpsBasicConfigurationArgs
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 This property is required. HttpsBasicConfigurationArgs
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. HttpsBasicConfigurationArgs
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 httpsBasicConfigurationResource = new AliCloud.Esa.HttpsBasicConfiguration("httpsBasicConfigurationResource", new()
{
    SiteId = 0,
    Http3 = "string",
    Http2 = "string",
    Ciphersuite = "string",
    Https = "string",
    OcspStapling = "string",
    Rule = "string",
    RuleEnable = "string",
    RuleName = "string",
    CiphersuiteGroup = "string",
    Tls10 = "string",
    Tls11 = "string",
    Tls12 = "string",
    Tls13 = "string",
});
Copy
example, err := esa.NewHttpsBasicConfiguration(ctx, "httpsBasicConfigurationResource", &esa.HttpsBasicConfigurationArgs{
	SiteId:           pulumi.Int(0),
	Http3:            pulumi.String("string"),
	Http2:            pulumi.String("string"),
	Ciphersuite:      pulumi.String("string"),
	Https:            pulumi.String("string"),
	OcspStapling:     pulumi.String("string"),
	Rule:             pulumi.String("string"),
	RuleEnable:       pulumi.String("string"),
	RuleName:         pulumi.String("string"),
	CiphersuiteGroup: pulumi.String("string"),
	Tls10:            pulumi.String("string"),
	Tls11:            pulumi.String("string"),
	Tls12:            pulumi.String("string"),
	Tls13:            pulumi.String("string"),
})
Copy
var httpsBasicConfigurationResource = new HttpsBasicConfiguration("httpsBasicConfigurationResource", HttpsBasicConfigurationArgs.builder()
    .siteId(0)
    .http3("string")
    .http2("string")
    .ciphersuite("string")
    .https("string")
    .ocspStapling("string")
    .rule("string")
    .ruleEnable("string")
    .ruleName("string")
    .ciphersuiteGroup("string")
    .tls10("string")
    .tls11("string")
    .tls12("string")
    .tls13("string")
    .build());
Copy
https_basic_configuration_resource = alicloud.esa.HttpsBasicConfiguration("httpsBasicConfigurationResource",
    site_id=0,
    http3="string",
    http2="string",
    ciphersuite="string",
    https="string",
    ocsp_stapling="string",
    rule="string",
    rule_enable="string",
    rule_name="string",
    ciphersuite_group="string",
    tls10="string",
    tls11="string",
    tls12="string",
    tls13="string")
Copy
const httpsBasicConfigurationResource = new alicloud.esa.HttpsBasicConfiguration("httpsBasicConfigurationResource", {
    siteId: 0,
    http3: "string",
    http2: "string",
    ciphersuite: "string",
    https: "string",
    ocspStapling: "string",
    rule: "string",
    ruleEnable: "string",
    ruleName: "string",
    ciphersuiteGroup: "string",
    tls10: "string",
    tls11: "string",
    tls12: "string",
    tls13: "string",
});
Copy
type: alicloud:esa:HttpsBasicConfiguration
properties:
    ciphersuite: string
    ciphersuiteGroup: string
    http2: string
    http3: string
    https: string
    ocspStapling: string
    rule: string
    ruleEnable: string
    ruleName: string
    siteId: 0
    tls10: string
    tls11: string
    tls12: string
    tls13: string
Copy

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

SiteId
This property is required.
Changes to this property will trigger replacement.
int
Site ID, which can be obtained by calling the ListSites interface.
Ciphersuite string
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
CiphersuiteGroup string
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
Http2 string
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
Http3 string
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
Https string
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
OcspStapling string
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
Rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
RuleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
RuleName string
Rule name. When adding global configuration, this parameter does not need to be set.
Tls10 string
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls11 string
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls12 string
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls13 string
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
SiteId
This property is required.
Changes to this property will trigger replacement.
int
Site ID, which can be obtained by calling the ListSites interface.
Ciphersuite string
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
CiphersuiteGroup string
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
Http2 string
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
Http3 string
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
Https string
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
OcspStapling string
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
Rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
RuleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
RuleName string
Rule name. When adding global configuration, this parameter does not need to be set.
Tls10 string
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls11 string
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls12 string
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls13 string
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
siteId
This property is required.
Changes to this property will trigger replacement.
Integer
Site ID, which can be obtained by calling the ListSites interface.
ciphersuite String
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
ciphersuiteGroup String
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
http2 String
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
http3 String
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
https String
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ocspStapling String
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
rule String
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable String
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
ruleName String
Rule name. When adding global configuration, this parameter does not need to be set.
tls10 String
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
tls11 String
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls12 String
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls13 String
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
siteId
This property is required.
Changes to this property will trigger replacement.
number
Site ID, which can be obtained by calling the ListSites interface.
ciphersuite string
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
ciphersuiteGroup string
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
http2 string
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
http3 string
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
https string
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ocspStapling string
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
ruleName string
Rule name. When adding global configuration, this parameter does not need to be set.
tls10 string
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
tls11 string
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls12 string
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls13 string
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
site_id
This property is required.
Changes to this property will trigger replacement.
int
Site ID, which can be obtained by calling the ListSites interface.
ciphersuite str
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
ciphersuite_group str
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
http2 str
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
http3 str
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
https str
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ocsp_stapling str
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
rule str
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
rule_enable str
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
rule_name str
Rule name. When adding global configuration, this parameter does not need to be set.
tls10 str
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
tls11 str
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls12 str
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls13 str
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
siteId
This property is required.
Changes to this property will trigger replacement.
Number
Site ID, which can be obtained by calling the ListSites interface.
ciphersuite String
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
ciphersuiteGroup String
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
http2 String
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
http3 String
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
https String
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ocspStapling String
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
rule String
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable String
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
ruleName String
Rule name. When adding global configuration, this parameter does not need to be set.
tls10 String
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
tls11 String
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls12 String
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls13 String
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.

Outputs

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

ConfigId int
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
Id string
The provider-assigned unique ID for this managed resource.
ConfigId int
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
Id string
The provider-assigned unique ID for this managed resource.
configId Integer
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
id String
The provider-assigned unique ID for this managed resource.
configId number
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
id string
The provider-assigned unique ID for this managed resource.
config_id int
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
id str
The provider-assigned unique ID for this managed resource.
configId Number
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing HttpsBasicConfiguration Resource

Get an existing HttpsBasicConfiguration 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?: HttpsBasicConfigurationState, opts?: CustomResourceOptions): HttpsBasicConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ciphersuite: Optional[str] = None,
        ciphersuite_group: Optional[str] = None,
        config_id: Optional[int] = None,
        http2: Optional[str] = None,
        http3: Optional[str] = None,
        https: Optional[str] = None,
        ocsp_stapling: Optional[str] = None,
        rule: Optional[str] = None,
        rule_enable: Optional[str] = None,
        rule_name: Optional[str] = None,
        site_id: Optional[int] = None,
        tls10: Optional[str] = None,
        tls11: Optional[str] = None,
        tls12: Optional[str] = None,
        tls13: Optional[str] = None) -> HttpsBasicConfiguration
func GetHttpsBasicConfiguration(ctx *Context, name string, id IDInput, state *HttpsBasicConfigurationState, opts ...ResourceOption) (*HttpsBasicConfiguration, error)
public static HttpsBasicConfiguration Get(string name, Input<string> id, HttpsBasicConfigurationState? state, CustomResourceOptions? opts = null)
public static HttpsBasicConfiguration get(String name, Output<String> id, HttpsBasicConfigurationState state, CustomResourceOptions options)
resources:  _:    type: alicloud:esa:HttpsBasicConfiguration    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:
Ciphersuite string
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
CiphersuiteGroup string
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
ConfigId int
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
Http2 string
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
Http3 string
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
Https string
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
OcspStapling string
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
Rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
RuleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
RuleName string
Rule name. When adding global configuration, this parameter does not need to be set.
SiteId Changes to this property will trigger replacement. int
Site ID, which can be obtained by calling the ListSites interface.
Tls10 string
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls11 string
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls12 string
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls13 string
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Ciphersuite string
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
CiphersuiteGroup string
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
ConfigId int
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
Http2 string
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
Http3 string
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
Https string
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
OcspStapling string
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
Rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
RuleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
RuleName string
Rule name. When adding global configuration, this parameter does not need to be set.
SiteId Changes to this property will trigger replacement. int
Site ID, which can be obtained by calling the ListSites interface.
Tls10 string
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls11 string
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls12 string
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
Tls13 string
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ciphersuite String
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
ciphersuiteGroup String
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
configId Integer
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
http2 String
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
http3 String
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
https String
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ocspStapling String
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
rule String
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable String
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
ruleName String
Rule name. When adding global configuration, this parameter does not need to be set.
siteId Changes to this property will trigger replacement. Integer
Site ID, which can be obtained by calling the ListSites interface.
tls10 String
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
tls11 String
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls12 String
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls13 String
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ciphersuite string
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
ciphersuiteGroup string
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
configId number
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
http2 string
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
http3 string
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
https string
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ocspStapling string
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
rule string
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable string
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
ruleName string
Rule name. When adding global configuration, this parameter does not need to be set.
siteId Changes to this property will trigger replacement. number
Site ID, which can be obtained by calling the ListSites interface.
tls10 string
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
tls11 string
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls12 string
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls13 string
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ciphersuite str
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
ciphersuite_group str
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
config_id int
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
http2 str
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
http3 str
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
https str
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ocsp_stapling str
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
rule str
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
rule_enable str
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
rule_name str
Rule name. When adding global configuration, this parameter does not need to be set.
site_id Changes to this property will trigger replacement. int
Site ID, which can be obtained by calling the ListSites interface.
tls10 str
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
tls11 str
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls12 str
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls13 str
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ciphersuite String
Custom cipher suite, indicating the specific encryption algorithm selected when CiphersuiteGroup is set to custom.
ciphersuiteGroup String
Cipher suite group. Default is all cipher suites. Possible values:

  • all: All cipher suites.
  • strict: Strong cipher suites.
  • custom: Custom cipher suites.
configId Number
ConfigId of the configuration, which can be obtained by calling the ListHttpsBasicConfigurations interface.
http2 String
Indicates whether HTTP2 is enabled. Default is on. Possible values:

  • on: Enabled.
  • off: Disabled.
http3 String
Whether to enable HTTP3, which is enabled by default. The value can be:

  • on: Enabled.
  • off: Disabled.
https String
Whether to enable HTTPS. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
ocspStapling String
Indicates whether OCSP is enabled. Default is off. Possible values:

  • on: Enabled.
  • off: Disabled.
rule String
Rule content, using conditional expressions to match user requests. When adding global configuration, this parameter does not need to be set. There are two usage scenarios:

  • Match all incoming requests: value set to true
  • Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com")
ruleEnable String
Rule switch. When adding global configuration, this parameter does not need to be set. Value range:

  • on: open.
  • off: close.
ruleName String
Rule name. When adding global configuration, this parameter does not need to be set.
siteId Changes to this property will trigger replacement. Number
Site ID, which can be obtained by calling the ListSites interface.
tls10 String
Whether to enable TLS1.0. Default is disabled. Possible values:

  • on: Enable.
  • off: Disable.
tls11 String
Whether to enable TLS1.1. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls12 String
Whether to enable TLS1.2. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.
tls13 String
Whether to enable TLS1.3. Default is enabled. Possible values:

  • on: Enable.
  • off: Disable.

Import

ESA Https Basic Configuration can be imported using the id, e.g.

$ pulumi import alicloud:esa/httpsBasicConfiguration:HttpsBasicConfiguration example <site_id>:<config_id>
Copy

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.