ALIYUN::ESA::Site类型用于创建站点。
语法
{
"Type": "ALIYUN::ESA::Site",
"Properties": {
"InstanceId": String,
"SiteName": String,
"AccessType": String,
"Coverage": String,
"PaymentType": String,
"ResourceGroupId": String,
"Tags": List
}
}属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
InstanceId | String | 是 | 否 | 实例 ID。 | 实例 ID 和站点 ID 至少填写一个,若两者都填,则以实例 ID 为准。 |
SiteName | String | 是 | 否 | 站点名称。 | 无 |
AccessType | String | 否 | 否 | 站点的接入类型。 | 取值:
|
Coverage | String | 否 | 是 | 加速区域。 | 取值:
|
PaymentType | String | 否 | 否 | 付费类型。 | 无 |
ResourceGroupId | String | 否 | 是 | 资源组 ID。 | 无 |
Tags | List | 否 | 是 | 站点绑定的标签。 | 最多支持添加20个标签。 更多信息,请参见Tags属性。 |
Tags语法
"Tags": [
{
"Value": String,
"Key": String
}
]Tags属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Key | String | 是 | 否 | 标签键。 | 长度为1~128个字符,不能以 |
Value | String | 否 | 否 | 标签值。 | 长度为0~128个字符,不能以 |
返回值
Fn::GetAtt
ModifyTime:修改时间。
SiteId:站点 ID。
NameServerList:为站点分配的 NS 列表,用半角逗号(,)分隔。当站点的接入方式为 NS 接入时,该字段有值,需要将站点的 DNS 服务器修改成这些 NS。随后即可验证站点的归属权,激活站点。
SiteName:站点名称。
ResourceGroupId:资源组 ID。
InstanceId:实例 ID。
CreateTime:创建时间。
Coverage:加速区域。
Tags:站点绑定的标签。
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
{
"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"
]
}
}
}
}