DATASOURCE::PVTZ::Zone类型用于查询用户单个Zone详情。
语法
{
"Type": "DATASOURCE::PVTZ::Zone",
"Properties": {
"ZoneId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ZoneId | String | 是 | 是 | Zone ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
SlaveDns:是否开启辅助DNS。
ZoneId:Zone ID。
ResourceGroupId:资源组ID。
ProxyPattern:子域名的递归解析代理是否启用。
CreateTime:创建时间。
Remark:Zone备注信息。
ZoneType:Zone类型。
ZoneName:Zone名称。
ZoneTag:云产品类型。
UpdateTime:更新时间。
UpdateTimestamp:更新时间(时间戳)。
CreateTimestamp:创建时间(时间戳)。
RecordCount:解析记录数。
BindVpcs:绑定的Vpc列表。
Tags:绑定的自定义标签。
IsPtr:该区域是否为反向查找区域。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ZoneId:
AssociationProperty: ZoneId
Type: String
Description:
en: The zone ID.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::PVTZ::Zone
Properties:
ZoneId:
Ref: ZoneId
Outputs:
SlaveDns:
Description: Indicates whether the secondary Domain Name System (DNS) feature is enabled for the zone.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SlaveDns
ZoneId:
Description: 'The zone ID. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- ZoneId
ResourceGroupId:
Description: The ID of the resource group to which the zone belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
ProxyPattern:
Description: 'Indicates whether the recursive resolution proxy for subdomain names is enabled. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- ProxyPattern
CreateTime:
Description: The time when the zone was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
Remark:
Description: The description of the zone.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Remark
ZoneType:
Description: The zone type, temporarily closed to users, no need to pass values.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ZoneType
ZoneName:
Description: The zone name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ZoneName
ZoneTag:
Description: Not open to users for the time being, no value transfer is required.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ZoneTag
UpdateTime:
Description: The time when the zone was last updated. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UpdateTime
UpdateTimestamp:
Description: The time when the zone was last updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UpdateTimestamp
CreateTimestamp:
Description: The time when the zone was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTimestamp
RecordCount:
Description: The total number of DNS records added in the zone.
Value:
Fn::GetAtt:
- ExtensionDataSource
- RecordCount
BindVpcs:
Description: The VPCs associated with the zone.
Value:
Fn::GetAtt:
- ExtensionDataSource
- BindVpcs
Tags:
Description: The tags of the zone.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
IsPtr:
Description: Indicates whether the zone is a reverse lookup zone.
Value:
Fn::GetAtt:
- ExtensionDataSource
- IsPtr
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ZoneId": {
"AssociationProperty": "ZoneId",
"Type": "String",
"Description": {
"en": "The zone ID."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::PVTZ::Zone",
"Properties": {
"ZoneId": {
"Ref": "ZoneId"
}
}
}
},
"Outputs": {
"SlaveDns": {
"Description": "Indicates whether the secondary Domain Name System (DNS) feature is enabled for the zone.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SlaveDns"
]
}
},
"ZoneId": {
"Description": "The zone ID. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneId"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group to which the zone belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"ProxyPattern": {
"Description": "Indicates whether the recursive resolution proxy for subdomain names is enabled. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ProxyPattern"
]
}
},
"CreateTime": {
"Description": "The time when the zone was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"Remark": {
"Description": "The description of the zone.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Remark"
]
}
},
"ZoneType": {
"Description": "The zone type, temporarily closed to users, no need to pass values.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneType"
]
}
},
"ZoneName": {
"Description": "The zone name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneName"
]
}
},
"ZoneTag": {
"Description": "Not open to users for the time being, no value transfer is required.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneTag"
]
}
},
"UpdateTime": {
"Description": "The time when the zone was last updated. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UpdateTime"
]
}
},
"UpdateTimestamp": {
"Description": "The time when the zone was last updated. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UpdateTimestamp"
]
}
},
"CreateTimestamp": {
"Description": "The time when the zone was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTimestamp"
]
}
},
"RecordCount": {
"Description": "The total number of DNS records added in the zone.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"RecordCount"
]
}
},
"BindVpcs": {
"Description": "The VPCs associated with the zone.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"BindVpcs"
]
}
},
"Tags": {
"Description": "The tags of the zone.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
},
"IsPtr": {
"Description": "Indicates whether the zone is a reverse lookup zone.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"IsPtr"
]
}
}
}
}
该文章对您有帮助吗?