O recurso ALIYUN::DCDN::Domain adiciona um nome de domínio do Edge Security Acceleration (ESA).
Sintaxe
{
"Type": "ALIYUN::DCDN::Domain",
"Properties": {
"CheckUrl": String,
"Scope": String,
"ResourceGroupId": String,
"DomainName": String,
"TopLevelDomain": String,
"Sources": List,
"Tags": List
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
CheckUrl |
String |
Não |
Sim |
URL de verificação de integridade. |
Nenhuma. |
|
Scope |
String |
Não |
Não |
Região de aceleração. |
Valores válidos:
|
|
ResourceGroupId |
String |
Não |
Sim |
ID do grupo de recursos. |
Padrão: ID do grupo de recursos padrão. |
|
DomainName |
String |
Sim |
Não |
Nome de domínio a adicionar. |
Permite apenas um nome de domínio. Compatível com nomes de domínio curinga iniciados por ponto (.). Exemplo: |
|
TopLevelDomain |
String |
Não |
Sim |
Nome de domínio raiz. |
Nenhuma. |
|
Sources |
List |
Sim |
Não |
Configurações do servidor de origem. |
Exemplo:
|
|
Tags |
List |
Não |
Sim |
Tags do nome de domínio. Limite: 20. |
Sintaxe de Tags
"Tags": [
{
"Key": String,
"Value": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Key |
String |
Sim |
Não |
Chave da tag. |
Máximo: 128 caracteres. Não pode conter |
|
Value |
String |
Não |
Não |
Valor da tag. |
Máximo: 128 caracteres. Não pode conter |
Sintaxe de Sources
"Sources": [
{
"Type": String,
"Content": String,
"Priority": String,
"Port": Integer,
"Weight": String
}
]
Propriedades de Sources
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Type |
String |
Sim |
Não |
Tipo do servidor de origem. |
Valores válidos:
|
|
Content |
String |
Sim |
Não |
Endereço do servidor de origem. |
Especifique um endereço IP ou nome de domínio. |
|
Priority |
String |
Não |
Não |
Prioridade do servidor de origem. |
Obrigatório ao configurar vários servidores de origem. Valores válidos: 20 a 30. Valor padrão: 20. Nota
20: origem primária. 30: origem secundária. |
|
Port |
Integer |
Não |
Não |
Número da porta. |
Valores válidos: 443, 80 ou porta personalizada. Valor padrão: 80. Nota
A porta 443 ativa o back-to-origin via HTTPS. |
|
Weight |
String |
Não |
Não |
Peso do servidor de origem. |
Valores válidos: menor que 100. Valor padrão: 10. |
Valores de retorno
Fn::GetAtt
Cname: CNAME do nome de domínio.
DomainName: nome de domínio.
Arn: Alibaba Cloud Resource Name (ARN).
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
CheckUrl:
Description: ''
Type: String
DomainName:
Description: 'The name of the accelerated domain. You can specify only one domain
name. Wildcard domain names are supported. Wildcard domain names must start
with a period (.). Example: .a.com.'
Type: String
ResourceGroupId:
Description: The ID of the resource group. If you do not specify this parameter,
the system automatically uses the ID of the default resource group.
Type: String
SSLPub:
Description: Indicates the public key of the certificate if the HTTPS protocol
is enabled.
Type: String
Scope:
Description: 'The region where your accelerated service is deployed. Valid values: domestic
(default): mainland China. overseas: outside mainland China. global: all countries
in the world.'
Type: String
Sources:
Description: The origin information.
Type: Json
TopLevelDomain:
Description: ''
Type: String
Resources:
DCDNDomain:
Properties:
CheckUrl:
Ref: CheckUrl
DomainName:
Ref: DomainName
ResourceGroupId:
Ref: ResourceGroupId
Scope:
Ref: Scope
Sources:
Ref: Sources
TopLevelDomain:
Ref: TopLevelDomain
Type: ALIYUN::DCDN::Domain
Outputs:
CertName:
Description: The name of the certificate.
Value:
Fn::GetAtt:
- DCDNDomain
- CertName
Cname:
Description: The canonical name (CNAME) of the accelerated domain.
Value:
Fn::GetAtt:
- DCDNDomain
- Cname
Description:
Description: The reason that causes the review failure.
Value:
Fn::GetAtt:
- DCDNDomain
- Description
DomainName:
Description: 'The name of the accelerated domain. You can specify only one domain
name. Wildcard domain names are supported. Wildcard domain names must start
with a period (.). Example: .a.com.'
Value:
Fn::GetAtt:
- DCDNDomain
- DomainName
ResourceGroupId:
Description: The ID of the resource group. If you do not specify this parameter,
the system automatically uses the ID of the default resource group.
Value:
Fn::GetAtt:
- DCDNDomain
- ResourceGroupId
SSLProtocol:
Description: 'Indicates whether the SSL certificate is enabled. Valid values: on:
enabled off: disabled'
Value:
Fn::GetAtt:
- DCDNDomain
- SSLProtocol
SSLPub:
Description: Indicates the public key of the certificate if the HTTPS protocol
is enabled.
Value:
Fn::GetAtt:
- DCDNDomain
- SSLPub
Scope:
Description: 'The region where your accelerated service is deployed. Valid values: domestic
(default): mainland China. overseas: outside mainland China. global: all countries
in the world.'
Value:
Fn::GetAtt:
- DCDNDomain
- Scope
Sources:
Description: The origin information.
Value:
Fn::GetAtt:
- DCDNDomain
- Sources
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Status": {
"Type": "String",
"Description": "The status of the accelerated domain. online: The domain is enabled. offline: The domain is disabled. configuring: The domain is being configured. configure_failed: The domain configuration failed. checking: The domain is under review. check_failed: The domain failed the review."
},
"SecurityToken": {
"Type": "String",
"Description": ""
},
"CheckUrl": {
"Type": "String",
"Description": ""
},
"ResourceGroupId": {
"Type": "String",
"Description": "The ID of the resource group. If you do not specify this parameter, the system automatically uses the ID of the default resource group."
},
"Scope": {
"Type": "String",
"Description": "The region where your accelerated service is deployed. Valid values: domestic (default): mainland China. overseas: outside mainland China. global: all countries in the world."
},
"DomainName": {
"Type": "String",
"Description": "The name of the accelerated domain. You can specify only one domain name. Wildcard domain names are supported. Wildcard domain names must start with a period (.). Example: .a.com."
},
"TopLevelDomain": {
"Type": "String",
"Description": ""
},
"Sources": {
"Type": "Json",
"Description": "The origin information."
}
},
"Resources": {
"DCDNDomain": {
"Type": "ALIYUN::DCDN::Domain",
"Properties": {
"SecurityToken": {
"Ref": "SecurityToken"
},
"CheckUrl": {
"Ref": "CheckUrl"
},
"ResourceGroupId": {
"Ref": "ResourceGroupId"
},
"Scope": {
"Ref": "Scope"
},
"DomainName": {
"Ref": "DomainName"
},
"SSLPub": {
"Ref": "SSLPub"
},
"CertName": {
"Ref": "CertName"
},
"TopLevelDomain": {
"Ref": "TopLevelDomain"
},
"Sources": {
"Ref": "Sources"
}
}
}
},
"Outputs": {
"Description": {
"Description": "The reason that causes the review failure.",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"Description"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group. If you do not specify this parameter, the system automatically uses the ID of the default resource group.",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"ResourceGroupId"
]
}
},
"Scope": {
"Description": "The region where your accelerated service is deployed. Valid values: domestic (default): mainland China. overseas: outside mainland China. global: all countries in the world.",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"Scope"
]
}
},
"DomainName": {
"Description": "The name of the accelerated domain. You can specify only one domain name. Wildcard domain names are supported. Wildcard domain names must start with a period (.). Example: .a.com.",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"DomainName"
]
}
},
"SSLPub": {
"Description": "Indicates the public key of the certificate if the HTTPS protocol is enabled.",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"SSLPub"
]
}
},
"CertName": {
"Description": "The name of the certificate.",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"CertName"
]
}
},
"Cname": {
"Description": "The canonical name (CNAME) of the accelerated domain.",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"Cname"
]
}
},
"Sources": {
"Description": "The origin information.",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"Sources"
]
}
},
"SSLProtocol": {
"Description": "Indicates whether the SSL certificate is enabled. Valid values: on: enabled off: disabled",
"Value": {
"Fn::GetAtt": [
"DCDNDomain",
"SSLProtocol"
]
}
}
}
}