Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ESA::HttpsBasicConfiguration

Última atualização: Jun 27, 2026

Adiciona uma configuração básica de HTTPS a um site.

Sintaxe

{
  "Type": "ALIYUN::ESA::HttpsBasicConfiguration",
  "Properties": {
    "SiteId": Integer,
    "Ciphersuite": String,
    "CiphersuiteGroup": String,
    "Https": String,
    "Http3": String,
    "Http2": String,
    "OcspStapling": String,
    "RuleEnable": String,
    "Rule": String,
    "RuleName": String,
    "Sequence": Integer,
    "Tls10": String,
    "Tls11": String,
    "Tls12": String,
    "Tls13": String
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Atualização permitida

Descrição

Restrições

SiteId

Integer

Sim

Não

ID do site.

Nenhuma

Ciphersuite

String

Não

Sim

Conjunto de cifras personalizado.

Algoritmos de criptografia usados quando CiphersuiteGroup é definido como custom.

CiphersuiteGroup

String

Não

Sim

Grupo de conjuntos de cifras.

O valor padrão é all. Valores válidos:

  • all: todos os conjuntos de cifras.

  • strict: conjuntos de cifras fortes.

  • custom: conjuntos de cifras personalizados.

Https

String

Não

Sim

Defina se o HTTPS deve ser ativado.

Ativado por padrão. Valores válidos:

  • on: ativado.

  • off: desativado.

Http3

String

Não

Sim

Defina se o HTTP/3 deve ser ativado.

Ativado por padrão. Valores válidos:

  • on: ativado.

  • off: desativado.

Http2

String

Não

Sim

Defina se o HTTP/2 deve ser ativado.

Ativado por padrão. Valores válidos:

  • on: ativado.

  • off: desativado.

OcspStapling

String

Não

Sim

Defina se o OCSP Stapling deve ser ativado.

Desativado por padrão. Valores válidos:

  • on: ativado.

  • off: desativado.

RuleEnable

String

Não

Sim

Chave de ativação da regra.

Não defina este parâmetro para configurações globais. Valores válidos:

  • on: ativado.

  • off: desativado.

Rule

String

Não

Sim

Conteúdo da regra.

Expressão condicional para corresponder às solicitações do usuário. Não defina este parâmetro para configurações globais.

  • Para corresponder a todas as solicitações recebidas, defina o valor como true.

  • Para corresponder a solicitações específicas, defina o valor como uma expressão personalizada, como (http.host eq "video.example.com").

RuleName

String

Não

Sim

Nome da regra.

Nenhuma

Sequence

Integer

Não

Sim

Prioridade de execução da regra.

Quanto menor o valor, maior a prioridade.

Tls10

String

Não

Sim

Defina se o TLS 1.0 deve ser ativado.

Desativado por padrão. Valores válidos:

  • on: ativado.

  • off: desativado.

Tls11

String

Não

Sim

Defina se o TLS 1.1 deve ser ativado.

Ativado por padrão. Valores válidos:

  • on: ativado.

  • off: desativado.

Tls12

String

Não

Sim

Defina se o TLS 1.2 deve ser ativado.

Ativado por padrão. Valores válidos:

  • on: ativado.

  • off: desativado.

Tls13

String

Não

Sim

Defina se o TLS 1.3 deve ser ativado.

Ativado por padrão. Valores válidos:

  • on: ativado.

  • off: desativado.

Valores de retorno

Fn::GetAtt

  • Ciphersuite: conjunto de cifras personalizado.

  • RuleEnable: indica se a regra está ativada.

  • Https: indica se o HTTPS está ativado.

  • Http3: indica se o HTTP/3 está ativado.

  • Http2: indica se o HTTP/2 está ativado.

  • Tls10: indica se o TLS 1.0 está ativado.

  • Tls11: indica se o TLS 1.1 está ativado.

  • Sequence: prioridade de execução da regra.

  • Tls12: indica se o TLS 1.2 está ativado.

  • Tls13: indica se o TLS 1.3 está ativado.

  • CiphersuiteGroup: grupo de conjuntos de cifras.

  • Rule: conteúdo da regra.

  • ConfigId: ID da configuração.

  • ConfigType: tipo de configuração.

  • RuleName: nome da regra.

  • OcspStapling: indica se o OCSP Stapling está ativado.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SiteId:
    Type: Number
    Description:
      en: The site ID. You can call the [ListSites](~~ListSites~~) operation to obtain the site ID.
    Required: true
  Https:
    Type: String
    Description:
      en: |-
        Specifies whether to enable HTTPS. HTTPS is enabled by default. Valid values:
        - on: Enabled.
        - off: Disabled.
    AllowedValues:
      - 'on'
      - 'off'
    Required: false
Resources:
  ExtensionResource:
    Type: ALIYUN::ESA::HttpsBasicConfiguration
    Properties:
      SiteId:
        Ref: SiteId
      Https:
        Ref: Https
Outputs:
  Ciphersuite:
    Description: The custom cipher suite. This specifies the encryption algorithms to use when CiphersuiteGroup is set to custom.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Ciphersuite
  RuleEnable:
    Description: The switch for the rule. This parameter is not required for a global configuration.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RuleEnable
  Https:
    Description: Indicates whether HTTPS is enabled. HTTPS is enabled by default.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Https
  Http3:
    Description: Indicates whether HTTP/3 is enabled. HTTP/3 is enabled by default.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Http3
  Http2:
    Description: Indicates whether HTTP/2 is enabled. HTTP/2 is enabled by default.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Http2
  Tls10:
    Description: Indicates whether TLS 1.0 is enabled. TLS 1.0 is disabled by default.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Tls10
  Tls11:
    Description: Indicates whether TLS 1.1 is enabled. TLS 1.1 is enabled by default.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Tls11
  Sequence:
    Description: The execution priority of the rule. A smaller value indicates a higher priority.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Sequence
  Tls12:
    Description: Indicates whether TLS 1.2 is enabled. TLS 1.2 is enabled by default.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Tls12
  Tls13:
    Description: Indicates whether TLS 1.3 is enabled. TLS 1.3 is enabled by default.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Tls13
  CiphersuiteGroup:
    Description: The cipher suite group. The default value includes all cipher suites.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CiphersuiteGroup
  Rule:
    Description: The content of the rule, which uses a conditional expression to match user requests. This parameter is not required for a global configuration.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Rule
  ConfigId:
    Description: The ID of the configuration.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ConfigId
  ConfigType:
    Description: The configuration type. You can use this type to query global or rule-based configurations.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ConfigType
  RuleName:
    Description: The name of the rule. This parameter is not required for a global configuration.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RuleName
  OcspStapling:
    Description: Indicates whether OCSP Stapling is enabled. OCSP Stapling is disabled by default.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - OcspStapling
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SiteId": {
      "Type": "Number",
      "Description": {
        "en": "The site ID. You can call the [ListSites](~~ListSites~~) operation to obtain the site ID."
      },
      "Required": true
    },
    "Https": {
      "Type": "String",
      "Description": {
        "en": "Specifies whether to enable HTTPS. HTTPS is enabled by default. Valid values:\n- on: Enabled.\n- off: Disabled."
      },
      "AllowedValues": [
        "on",
        "off"
      ],
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ESA::HttpsBasicConfiguration",
      "Properties": {
        "SiteId": {
          "Ref": "SiteId"
        },
        "Https": {
          "Ref": "Https"
        }
      }
    }
  },
  "Outputs": {
    "Ciphersuite": {
      "Description": "The custom cipher suite. This specifies the encryption algorithms to use when CiphersuiteGroup is set to custom.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Ciphersuite"
        ]
      }
    },
    "RuleEnable": {
      "Description": "The switch for the rule. This parameter is not required for a global configuration.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RuleEnable"
        ]
      }
    },
    "Https": {
      "Description": "Indicates whether HTTPS is enabled. HTTPS is enabled by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Https"
        ]
      }
    },
    "Http3": {
      "Description": "Indicates whether HTTP/3 is enabled. HTTP/3 is enabled by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Http3"
        ]
      }
    },
    "Http2": {
      "Description": "Indicates whether HTTP/2 is enabled. HTTP/2 is enabled by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Http2"
        ]
      }
    },
    "Tls10": {
      "Description": "Indicates whether TLS 1.0 is enabled. TLS 1.0 is disabled by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Tls10"
        ]
      }
    },
    "Tls11": {
      "Description": "Indicates whether TLS 1.1 is enabled. TLS 1.1 is enabled by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Tls11"
        ]
      }
    },
    "Sequence": {
      "Description": "The execution priority of the rule. A smaller value indicates a higher priority.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Sequence"
        ]
      }
    },
    "Tls12": {
      "Description": "Indicates whether TLS 1.2 is enabled. TLS 1.2 is enabled by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Tls12"
        ]
      }
    },
    "Tls13": {
      "Description": "Indicates whether TLS 1.3 is enabled. TLS 1.3 is enabled by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Tls13"
        ]
      }
    },
    "CiphersuiteGroup": {
      "Description": "The cipher suite group. The default value includes all cipher suites.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CiphersuiteGroup"
        ]
      }
    },
    "Rule": {
      "Description": "The content of the rule, which uses a conditional expression to match user requests. This parameter is not required for a global configuration.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Rule"
        ]
      }
    },
    "ConfigId": {
      "Description": "The ID of the configuration.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ConfigId"
        ]
      }
    },
    "ConfigType": {
      "Description": "The configuration type. You can use this type to query global or rule-based configurations.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ConfigType"
        ]
      }
    },
    "RuleName": {
      "Description": "The name of the rule. This parameter is not required for a global configuration.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RuleName"
        ]
      }
    },
    "OcspStapling": {
      "Description": "Indicates whether OCSP Stapling is enabled. OCSP Stapling is disabled by default.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OcspStapling"
        ]
      }
    }
  }
}