DATASOURCE::PVTZ::Zones is used to query private zones.

Syntax

{
  "Type": "DATASOURCE::PVTZ::Zones",
  "Properties": {
    "ResourceGroupId": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
ResourceGroupIdStringNoYesThe ID of the resource group. None.

Return values

Fn::GetAtt

  • ZoneIds: the IDs of the private zones.
  • Zones: details of the private zones.
PropertyTypeDescriptionConstraint
ZoneIdsListThe IDs of the private zones. None.
ZonesListDetails of the private zones. None.
CreateTimestampIntegerThe timestamp when the private zone was created. None.
UpdateTimeStringThe time when the private zone was updated. None.
ZoneTagStringThe type of the cloud service. Valid values:
  • If you set the ZoneType property to AUTH_ZONE, you must leave the ZoneTag property empty.
  • If you set the ZoneType property to CLOUD_PRODUCT_ZONE, you must set the ZoneTag property to a specific Alibaba Cloud service.
RecordCountIntegerThe number of Domain Name System (DNS) records. None.
TagsListThe tags of the private zone. Sample value:
[{"Value": "daily","Key": "env"}]
RemarkStringThe description of the private zone. None.
ZoneIdStringThe ID of the private zone. None.
ZoneTypeStringThe type of the private zone. Valid values:
  • AUTH_ZONE: authoritative zone
  • CLOUD_PRODUCT_ZONE: cloud service-hosted zone
ResourceGroupIdStringThe ID of the resource group. None.
ProxyPatternStringThe proxy mode of the private zone. Valid values:
  • ZONE: The recursive resolution proxy feature is disabled for the private zone.
  • RECORD: The recursive resolution proxy is enabled for the private zone.
IsPtrBooleanIndicates whether the private zone is a reverse lookup zone. Valid values:
  • true
  • false
UpdateTimestampIntegerThe timestamp when the private zone was updated. None.
CreateTimeStringThe time when the private zone was created. None.
ZoneNameStringThe name of the private zone. None.

Examples

  • YAML format

    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
  • JSON format

    {
      "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"
            ]
          }
        }
      }
    }