All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::NAS::Zones

最終更新日:Nov 28, 2024

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:

  • standard (default): General-purpose File Storage NAS (NAS) file system

  • extreme: Extreme NAS file system

  • cpfs: CPFS file system

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

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:

[
      {
        "StorageType": "Performance",
        "ProtocolType": "nfs"
      }
    ]

The following section describes the properties:

  • StorageType: the storage type

  • ProtocolType: the protocol type of the file system

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