Cria um site.
Sintaxe
{
"Type": "ALIYUN::ESA::Site",
"Properties": {
"InstanceId": String,
"SiteName": String,
"AccessType": String,
"Coverage": String,
"PaymentType": String,
"ResourceGroupId": String,
"Tags": List
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Atualização permitida |
Descrição |
Restrições |
|
InstanceId |
String |
Sim |
Não |
ID da instância. |
Informe o ID da instância ou o ID do site. Se ambos forem especificados, o ID da instância terá precedência. |
|
SiteName |
String |
Sim |
Não |
Nome do site. |
Nenhuma |
|
AccessType |
String |
Não |
Não |
Tipo de acesso ao site. |
Valores válidos:
|
|
Coverage |
String |
Não |
Sim |
Área de aceleração. |
Valores válidos:
|
|
PaymentType |
String |
Não |
Não |
Tipo de pagamento. |
Nenhuma |
|
ResourceGroupId |
String |
Não |
Sim |
ID do grupo de recursos. |
Nenhuma |
|
Tags |
List |
Não |
Sim |
Tags do site. |
Máximo: 20. Para mais informações, consulte Propriedades de Tags. |
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatória |
Atualização permitida |
Descrição |
Restrições |
|
Key |
String |
Sim |
Não |
Chave da tag. |
O valor deve ter de 1 a 128 caracteres. Não pode começar com |
|
Value |
String |
Não |
Não |
Valor da tag. |
O valor pode ter de 0 a 128 caracteres. Não pode começar com |
Valores de retorno
Fn::GetAtt
ModifyTime: hora da última modificação.
SiteId: ID do site.
NameServerList: lista de servidores de nomes atribuídos ao site, separados por vírgula. Retornado apenas quando AccessType for NS. Para ativar o site, aponte o DNS do domínio para esses servidores e verifique a propriedade.
SiteName: nome do site.
ResourceGroupId: ID do grupo de recursos.
InstanceId: ID da instância.
CreateTime: hora de criação do site.
Coverage: área de aceleração.
Tags: tags do site.
AccessType: tipo de acesso ao site.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SiteName:
Type: String
Description:
en: The name of the Site.
Required: true
InstanceId:
Type: String
Description:
en: The ID of the associated package instance.
Required: true
Coverage:
Type: String
Description:
en: Acceleration area.
Required: false
AccessType:
Type: String
Description:
en: The Access Type of the Site.
AllowedValues:
- CNAME
- NS
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::ESA::Site
Properties:
SiteName:
Ref: SiteName
InstanceId:
Ref: InstanceId
Coverage:
Ref: Coverage
AccessType:
Ref: AccessType
Outputs:
ModifyTime:
Description: Modification time.
Value:
Fn::GetAtt:
- ExtensionResource
- ModifyTime
SiteId:
Description: The ID of the Site.
Value:
Fn::GetAtt:
- ExtensionResource
- SiteId
NameServerList:
Description: Site Resolution Name Server List.
Value:
Fn::GetAtt:
- ExtensionResource
- NameServerList
SiteName:
Description: The name of the Site.
Value:
Fn::GetAtt:
- ExtensionResource
- SiteName
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceGroupId
InstanceId:
Description: The ID of the associated package instance.
Value:
Fn::GetAtt:
- ExtensionResource
- InstanceId
CreateTime:
Description: Creation time.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Coverage:
Description: Acceleration area.
Value:
Fn::GetAtt:
- ExtensionResource
- Coverage
Tags:
Description: The tags of the Site.
Value:
Fn::GetAtt:
- ExtensionResource
- Tags
AccessType:
Description: Site Access Type.
Value:
Fn::GetAtt:
- ExtensionResource
- AccessType
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SiteName": {
"Type": "String",
"Description": {
"en": "The name of the Site."
},
"Required": true
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the associated package instance."
},
"Required": true
},
"Coverage": {
"Type": "String",
"Description": {
"en": "Acceleration area."
},
"Required": false
},
"AccessType": {
"Type": "String",
"Description": {
"en": "The Access Type of the Site."
},
"AllowedValues": [
"CNAME",
"NS"
],
"Required": false
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ESA::Site",
"Properties": {
"SiteName": {
"Ref": "SiteName"
},
"InstanceId": {
"Ref": "InstanceId"
},
"Coverage": {
"Ref": "Coverage"
},
"AccessType": {
"Ref": "AccessType"
}
}
}
},
"Outputs": {
"ModifyTime": {
"Description": "Modification time.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ModifyTime"
]
}
},
"SiteId": {
"Description": "The ID of the Site.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SiteId"
]
}
},
"NameServerList": {
"Description": "Site Resolution Name Server List.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"NameServerList"
]
}
},
"SiteName": {
"Description": "The name of the Site.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SiteName"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceGroupId"
]
}
},
"InstanceId": {
"Description": "The ID of the associated package instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"InstanceId"
]
}
},
"CreateTime": {
"Description": "Creation time.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"Coverage": {
"Description": "Acceleration area.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Coverage"
]
}
},
"Tags": {
"Description": "The tags of the Site.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Tags"
]
}
},
"AccessType": {
"Description": "Site Access Type.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AccessType"
]
}
}
}
}