All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::NAS::Fileset

Last Updated:Nov 23, 2023

ALIYUN::NAS::Fileset is used to create a fileset.

Syntax

{
  "Type": "ALIYUN::NAS::Fileset",
  "Properties": {
    "FileSystemPath": String,
    "Description": String,
    "FileSystemId": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

FileSystemPath

String

Yes

No

The absolute path of the fileset.

Value format:

  • The parent directory of the directory that you specify must be an existing directory in the file system.

  • The path must be 2 to 1024 characters in length.

  • The path must start and end with a forward slash (/).

Description

String

No

Yes

The description of the fileset.

Value format:

  • The description must be 2 to 128 characters in length.

  • The description must start with a letter and cannot start with http:// or https://.

  • The description can contain letters, digits, colons (:), underscores (_), and hyphens (-).

FileSystemId

String

Yes

No

The ID of the file system.

None.

Return values

Fn::GetAtt

  • FsetId: the fileset ID.

  • FileSystemPath: the absolute path of the fileset.

  • FileSystemId: the ID of the file system.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      FileSystemId:
        Default: cpfs-03c125afccbd****
        Type: String
      FileSystemPath:
        Default: "/rostestfilesystempath/"
        Type: String
      SourceStorage:
        Default: oss://cpfs-data-flow-source-test-****
        Type: String
    Resources:
      Fileset:
        Type: ALIYUN::NAS::Fileset
        Properties:
          FileSystemId:
            Ref: FileSystemId
          Description: ros_test_fileset
          FileSystemPath:
            Ref: FileSystemPath
    Outputs:
      FilesetId:
        Value:
          Fn::GetAtt:
          - Fileset
          - FsetId
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "FileSystemId": {
          "Default": "cpfs-03c125afccbd****",
          "Type": "String"
        },
        "FileSystemPath": {
          "Default": "/rostestfilesystempath/",
          "Type": "String"
        },
        "SourceStorage": {
          "Default": "oss://cpfs-data-flow-source-test-****",
          "Type": "String"
        }
      },
      "Resources": {
        "Fileset": {
          "Type": "ALIYUN::NAS::Fileset",
          "Properties": {
            "FileSystemId": {
              "Ref": "FileSystemId"
            },
            "Description": "ros_test_fileset",
            "FileSystemPath": {
              "Ref": "FileSystemPath"
            }
          }
        }
      },
      "Outputs": {
        "FilesetId": {
          "Value": {
            "Fn::GetAtt": [
              "Fileset",
              "FsetId"
            ]
          }
        }
      }
    }