Queries built-in authoritative zones.
Syntax
{
"Type": "DATASOURCE::PVTZ::Zones",
"Properties": {
"ResourceGroupId": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
|
ResourceGroupId |
String |
No |
Yes |
The ID of the resource group. |
None. |
|
VpcId |
String |
No |
Yes |
The VPC ID. |
None |
Return values
Fn::GetAtt
-
ZoneIds: the IDs of the zones.
-
Zones: details of the zones.
|
Property |
Type |
Description |
Constraint |
|
ZoneIds |
List |
The IDs of the zones. |
None. |
|
Zones |
List |
Details of the zones. |
None. |
|
CreateTimestamp |
Integer |
The creation timestamp. |
None. |
|
UpdateTime |
String |
The update time. |
None. |
|
ZoneTag |
String |
The type of the cloud service. |
Valid values:
|
|
RecordCount |
Integer |
The number of Domain Name System (DNS) records. |
None. |
|
Tags |
List |
The tags of the zone. |
Example:
|
|
Remark |
String |
The description of the zone. |
None. |
|
ZoneId |
String |
The zone ID. |
None. |
|
ZoneType |
String |
The zone type. |
Valid values:
|
|
ResourceGroupId |
String |
The ID of the resource group. |
None. |
|
ProxyPattern |
String |
The proxy mode. |
Valid values:
|
|
IsPtr |
Boolean |
Whether the zone is a reverse lookup zone. |
Valid values:
|
|
UpdateTimestamp |
Integer |
The update timestamp. |
None. |
|
CreateTime |
String |
The creation time. |
None. |
|
ZoneName |
String |
The zone name. |
None. |
Examples
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"
]
}
}
}
}