All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::DFS::FileSystem

更新時間:Aug 12, 2024

ALIYUN::DFS::FileSystem is used to create a file system.

Syntax

{
  "Type": "ALIYUN::DFS::FileSystem",
  "Properties": {
    "SpaceCapacity": Integer,
    "Description": String,
    "StorageType": String,
    "ZoneId": String,
    "PartitionNumber": Integer,
    "ProtocolType": String,
    "DataRedundancyType": String,
    "FileSystemName": String,
    "ProvisionedThroughputInMiBps": Integer,
    "ThroughputMode": String,
    "StorageSetName": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
SpaceCapacityIntegerYesYesThe estimated capacity of the file system. None.
DescriptionStringNoYesThe description of the file system. None.
StorageTypeStringYesNoThe type of the storage medium. Valid values:
  • STANDARD
  • PERFORMANCE
ZoneIdStringYesNoThe ID of the zone. None.
PartitionNumberIntegerNoNo This property is reserved. None.
ProtocolTypeStringYesNoThe type of the protocol. Set the value to HDFS.
DataRedundancyTypeStringNoNoThe redundancy mode of the file system. Default value: LRS. Valid values:
  • LRS: locally redundant storage (LRS)
  • ZRS: zone-redundant storage (ZRS)

    If you set this property to ZRS, the value of the ZoneId property must be a string that consists of multiple zone IDs. Example: zoneId1,zoneId2.

FileSystemNameStringNoYesThe name of the file system. The name must meet the following requirements:
  • The name must be 6 to 100 characters in length.
  • The name must be globally unique and cannot be an empty string.
  • The name can contain letters, digits, and underscores (_).
ProvisionedThroughputInMiBpsIntegerNoYesThe provisioned throughput. Unit: MB/s.

Valid values: 1 to 5120.

ThroughputModeStringNoYesThe throughput mode. Default value: Standard. Valid values:
  • Standard: standard throughput
  • Provisioned: provisioned throughput
StorageSetNameStringNoNoThis property is reserved. None.

Return values

Fn::GetAtt

FileSystemId: the ID of the file system.

Examples

  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "SpaceCapacity": {
          "Type": "Number",
          "Description": "Capacity of the file system.\nWhen the actual data volume reaches the file system capacity, data cannot be written.\nUnit: GB"
        },
        "StorageType": {
          "Type": "String",
          "Description": "Type of storage media.\nValues:\nSTANDARD (default) : standard type.\nPERFORMANCE: performance type.",
          "AllowedValues": [
            "STANDARD",
            "PERFORMANCE"
          ],
          "Default": "STANDARD"
        },
        "ZoneId": {
          "Type": "String",
          "Description": "zone id"
        },
        "ProtocolType": {
          "Type": "String",
          "Description": The protocol type. Only Hadoop Distributed File System (HDFS) is supported",
          "AllowedValues": [
            "HDFS"
          ]
        }
      },
      "Resources": {
        "FileSystem": {
          "Type": "ALIYUN::DFS::FileSystem",
          "Properties": {
            "SpaceCapacity": {
              "Ref": "SpaceCapacity"
            },
            "StorageType": {
              "Ref": "StorageType"
            },
            "ZoneId": {
              "Ref": "ZoneId"
            },
            "ProtocolType": {
              "Ref": "ProtocolType"
            }
          }
        }
      },
      "Outputs": {
        "FileSystemId": {
          "Description": "The ID of the file system.",
          "Value": {
            "Fn::GetAtt": [
              "FileSystem",
              "FileSystemId"
            ]
          }
        }
      }
    }
  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      SpaceCapacity:
        Type: Number
        Description: |-
          Capacity of the file system.
          When the actual data volume reaches the file system capacity, data cannot be written.
          Unit: GB
      StorageType:
        Type: String
        Description: |-
          Type of storage media.
          Values:
          STANDARD (default) : standard type.
          PERFORMANCE: performance type.
        AllowedValues:
          - STANDARD
          - PERFORMANCE
        Default: STANDARD
      ZoneId:
        Type: String
        Description: zone id
      ProtocolType:
        Type: String
        Description: The protocol type. Only HDFS is supported.
        AllowedValues:
          - HDFS
    Resources:
      FileSystem:
        Type: ALIYUN::DFS::FileSystem
        Properties:
          SpaceCapacity:
            Ref: SpaceCapacity
          StorageType:
            Ref: StorageType
          ZoneId:
            Ref: ZoneId
          ProtocolType:
            Ref: ProtocolType
    Outputs:
      FileSystemId:
        Description: The ID of the file system.
        Value:
          Fn::GetAtt:
            - FileSystem
            - FileSystemId