DATASOURCE::BPStudio::Template类型用于获取模板图片及架构图相关信息。
语法
{
"Type": "DATASOURCE::BPStudio::Template",
"Properties": {
"TemplateId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
TemplateId | String | 是 | 是 | 模板 ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
Description:模板描述。
ResourceGroupId:资源组ID。
TopoUrl:资源文件地址。
CreateTime:创建时间。
TemplateName:模板名称。
ImageUrl:模板架构图片文件路径。
TemplateId:模板 ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TemplateId:
Type: String
Description:
en: The first ID of the resource.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::BPStudio::Template
Properties:
TemplateId:
Ref: TemplateId
Outputs:
Description:
Description: Template description.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
TopoUrl:
Description: Represents resource file address.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TopoUrl
CreateTime:
Description: The creation time of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
TemplateName:
Description: The name of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TemplateName
ImageUrl:
Description: Representative resource picture address.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageUrl
TemplateId:
Description: The first ID of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TemplateId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TemplateId": {
"Type": "String",
"Description": {
"en": "The first ID of the resource."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::BPStudio::Template",
"Properties": {
"TemplateId": {
"Ref": "TemplateId"
}
}
}
},
"Outputs": {
"Description": {
"Description": "Template description.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"TopoUrl": {
"Description": "Represents resource file address.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TopoUrl"
]
}
},
"CreateTime": {
"Description": "The creation time of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"TemplateName": {
"Description": "The name of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TemplateName"
]
}
},
"ImageUrl": {
"Description": "Representative resource picture address.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageUrl"
]
}
},
"TemplateId": {
"Description": "The first ID of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TemplateId"
]
}
}
}
}
文档内容是否对您有帮助?