DATASOURCE::ECI::ImageCache类型用于查询镜像缓存信息。
语法
{
"Type": "DATASOURCE::ECI::ImageCache",
"Properties": {
"ImageCacheId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ImageCacheId | String | 是 | 是 | 镜像缓存ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值:
|
返回值
Fn::GetAtt
ImageCacheSize:镜像缓存大小。单位:GiB。
Progress:镜像缓存对应快照的创建进度。
ImageCacheId:镜像缓存ID。
ResourceGroupId:所属资源组ID。
CreateTime:资源创建时间。
Images:镜像缓存包含的镜像列表。
ImageCacheTags:镜像缓存的标签列表信息。
SnapshotId:镜像缓存对应的快照ID。
Events:镜像缓存拉取镜像事件信息。
FlashSnapshotId:本地快照ID。
ImageCacheName:镜像缓存名称。
ContainerGroupId:容器组ID。
ExpireDateTime:到期时间。
EliminationStrategy:镜像缓存的淘汰策略。默认为空,表示一直保留。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ImageCacheId:
Description:
en: ImageCacheId.
Required: true
Type: String
Resources:
ExtensionDataSource:
Properties:
ImageCacheId:
Ref: ImageCacheId
Type: DATASOURCE::ECI::ImageCache
Outputs:
ContainerGroupId:
Description: ContainerGroupId.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ContainerGroupId
CreateTime:
Description: CreateTime.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
EliminationStrategy:
Description: The elimination strategy of the mirror cache. The default is empty,
indicating that it has been kept.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EliminationStrategy
Events:
Description: Events.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Events
ExpireDateTime:
Description: ExpireDateTime.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ExpireDateTime
FlashSnapshotId:
Description: FlashSnapshotId.
Value:
Fn::GetAtt:
- ExtensionDataSource
- FlashSnapshotId
ImageCacheId:
Description: ImageCacheId.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageCacheId
ImageCacheName:
Description: ImageCacheName.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageCacheName
ImageCacheSize:
Description: ImageCacheSize.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageCacheSize
ImageCacheTags:
Description: Tags.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ImageCacheTags
Images:
Description: Images.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Images
Progress:
Description: Progress.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Progress
ResourceGroupId:
Description: ResourceGroupId.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
SnapshotId:
Description: SnapshotId.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SnapshotId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ImageCacheId": {
"Type": "String",
"Description": {
"en": "ImageCacheId."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECI::ImageCache",
"Properties": {
"ImageCacheId": {
"Ref": "ImageCacheId"
}
}
}
},
"Outputs": {
"ImageCacheSize": {
"Description": "ImageCacheSize.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageCacheSize"
]
}
},
"Progress": {
"Description": "Progress.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Progress"
]
}
},
"ImageCacheId": {
"Description": "ImageCacheId.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageCacheId"
]
}
},
"ResourceGroupId": {
"Description": "ResourceGroupId.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"CreateTime": {
"Description": "CreateTime.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"Images": {
"Description": "Images.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Images"
]
}
},
"ImageCacheTags": {
"Description": "Tags.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageCacheTags"
]
}
},
"SnapshotId": {
"Description": "SnapshotId.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SnapshotId"
]
}
},
"Events": {
"Description": "Events.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Events"
]
}
},
"FlashSnapshotId": {
"Description": "FlashSnapshotId.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"FlashSnapshotId"
]
}
},
"ImageCacheName": {
"Description": "ImageCacheName.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ImageCacheName"
]
}
},
"ContainerGroupId": {
"Description": "ContainerGroupId.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ContainerGroupId"
]
}
},
"ExpireDateTime": {
"Description": "ExpireDateTime.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ExpireDateTime"
]
}
},
"EliminationStrategy": {
"Description": "The elimination strategy of the mirror cache. The default is empty, indicating that it has been kept.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EliminationStrategy"
]
}
}
}
}