DATASOURCE::NAS::Zones is used to query zones.

Syntax

{
  "Type": "DATASOURCE::NAS::Zones",
  "Properties": {
    "FileSystemType": String
  }
}

Properties

Property Type Required Editable Description Constraint
FileSystemType String No Yes The type of the file system. Default value: standard. Valid values:
  • standard: General-purpose NAS file system
  • extreme: Extreme NAS file system
  • cpfs: Cloud Paralleled File System (CPFS) file system

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
ZoneId String The ID of the zone. Example: cn-hangzhou-b.
InstanceTypes List Details of the instance types. Example:
[
      {
        "StorageType": "Performance",
        "ProtocolType": "nfs"
      }
    ]

Properties in the example:

  • StorageType: the storage type.
  • ProtocolType: the File Transfer Protocol (FTP) type.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "FileSystemType": {
      "Type": "String",
      "Description": "The type of the file system. Default value: all. Valid values:\nstandard: General-purpose NAS file system\nextreme: Extreme NAS file system\ncpfs: CPFS file system"
      "Default": "standard"
    }
  },
  "Resources": {
    "Zones": {
      "Type": "DATASOURCE::NAS::Zones",
      "Properties": {
        "FileSystemType": {
          "Ref": "FileSystemType"
        }
      }
    }
  },
  "Outputs": {
    "ZoneIds": {
      "Description": "The list of zone IDs.",
      "Value": {
        "Fn::GetAtt": [
          "Zones",
          "ZoneIds"
        ]
      }
    },
    "Zones": {
      "Description": "The list of zones.",
      "Value": {
        "Fn::GetAtt": [
          "Zones",
          "Zones"
        ]
      }
    }
  }
}