DATASOURCE::NAS::Zones类型用于查询可用区列表。
语法
{
  "Type": "DATASOURCE::NAS::Zones",
  "Properties": {
    "FileSystemType": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| FileSystemType | String | 否 | 是 | 文件系统类型。 | 取值: 
 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回数据(Fn::GetAtt)
- ZoneIds:可用区ID列表。 
- Zones:可用区详情列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| ZoneIds | List | 可用区ID列表。 | 无 | 
| Zones | List | 可用区详情列表。 | 无 | 
| ZoneId | String | 可用区ID。 | 取值示例:cn-hangzhou-b。 | 
| InstanceTypes | List | 实例类型信息集合。 | 取值示例: 参数说明: 
 | 
示例
JSON格式
{
  "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"
        ]
      }
    }
  }
}该文章对您有帮助吗?