DATASOURCE::NAS::Zones is used to query zones.
Syntax
{
"Type": "DATASOURCE::NAS::Zones",
"Properties": {
"FileSystemType": String,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
FileSystemType | String | No | Yes | The type of the file system. | Valid values:
|
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
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 zone ID. | Example: cn-hangzhou-b. |
InstanceTypes | List | Details of the file system types. | Example:
The following section describes the properties:
|
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"
]
}
}
}
}