Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::DFS::FileSystem

Última atualização: Jun 27, 2026

ALIYUN::DFS::FileSystem crie um sistema de arquivos.

Sintaxe

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

Propriedades

PropriedadeTipoObrigatórioEditávelDescriçãoRestrição
SpaceCapacityIntegerSimSimCapacidade estimada do sistema de arquivos.Nenhuma.
DescriptionStringNãoSimDescrição do sistema de arquivos.Nenhuma.
StorageTypeStringSimNãoTipo de meio de armazenamento.Valores válidos:
  • STANDARD
  • PERFORMANCE
ZoneIdStringSimNãoID da zona.Nenhuma.
PartitionNumberIntegerNãoNãoPropriedade reservada.Nenhuma.
ProtocolTypeStringSimNãoTipo de protocolo.Defina o valor como HDFS.
DataRedundancyTypeStringNãoNãoModo de redundância do sistema de arquivos.Valor padrão: LRS. Valores válidos:
  • LRS: armazenamento localmente redundante (LRS)
  • ZRS: armazenamento com redundância de zona (ZRS)

    Se defina esta propriedade como ZRS, o valor de ZoneId deverá ser uma string com vários IDs de zona. Exemplo: zoneId1,zoneId2.

FileSystemNameStringNãoSimNome do sistema de arquivos.O nome deve atender aos seguintes requisitos:
  • Ter entre 6 e 100 caracteres.
  • Ser globalmente único e não pode ser uma string vazia.
  • Conter letras, dígitos e sublinhados (_).
ProvisionedThroughputInMiBpsIntegerNãoSimThroughput provisionado.Unidade: MB/s.

Valores válidos: 1 a 5120.

ThroughputModeStringNãoSimModo de throughput.Valor padrão: Standard. Valores válidos:
  • Standard: throughput padrão
  • Provisioned: throughput provisionado
StorageSetNameStringNãoNãoPropriedade reservada.Nenhuma.

Valores de retorno

Fn::GetAtt

FileSystemId: ID do sistema de arquivos.

Exemplos

  • Formato JSON

    {
      "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"
            ]
          }
        }
      }
    }
  • Formato YAML

    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