DATASOURCE::PVTZ::Zones类型用于查询用户的Zone列表。
语法
{
"Type": "DATASOURCE::PVTZ::Zones",
"Properties": {
"ResourceGroupId": String,
"RefreshOptions": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
RefreshOptions |
String |
否 |
是 |
当资源栈更新时,数据源资源的刷新策略。 |
有效值:
|
|
ResourceGroupId |
String |
否 |
是 |
资源组ID。 |
无 |
|
VpcId |
String |
否 |
是 |
专有网络VPC ID。 |
无 |
返回值
Fn::GetAtt
-
ZoneIds:Zone ID列表。
-
Zones:Zone详情列表。
|
属性名称 |
类型 |
描述 |
约束 |
|
ZoneIds |
List |
Zone ID列表。 |
无 |
|
Zones |
List |
Zone详情列表。 |
无 |
|
CreateTimestamp |
Integer |
创建时间(时间戳)。 |
无 |
|
UpdateTime |
String |
更新时间。 |
无 |
|
ZoneTag |
String |
云产品类型。 |
取值:
|
|
RecordCount |
Integer |
解析记录数。 |
无 |
|
Tags |
List |
资源标签列表。 |
示例:
|
|
Remark |
String |
Zone备注信息。 |
无 |
|
ZoneId |
String |
Zone ID。 |
无 |
|
ZoneType |
String |
Zone类型。 |
取值:
|
|
ResourceGroupId |
String |
资源组ID。 |
无 |
|
ProxyPattern |
String |
代理模式。 |
取值:
|
|
IsPtr |
Boolean |
是否是反解。 |
取值:
|
|
UpdateTimestamp |
Integer |
更新时间(时间戳)。 |
无 |
|
CreateTime |
String |
创建时间。 |
无 |
|
ZoneName |
String |
Zone名称。 |
无 |
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ResourceGroupId:
Description: ResourceGroupId
Type: String
Resources:
ExtensionDataSource:
Properties:
ResourceGroupId:
Ref: ResourceGroupId
Type: DATASOURCE::PVTZ::Zones
Outputs:
ZoneIds:
Description: The list of zone IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ZoneIds
Zones:
Description: The list of zones.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Zones{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ResourceGroupId": {
"Type": "String",
"Description": "ResourceGroupId"
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::PVTZ::Zones",
"Properties": {
"ResourceGroupId": {
"Ref": "ResourceGroupId"
}
}
}
},
"Outputs": {
"ZoneIds": {
"Description": "The list of zone IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneIds"
]
}
},
"Zones": {
"Description": "The list of zones.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Zones"
]
}
}
}
}