ALIYUN::NAS::FileSystem is used to create a file system of File Storage NAS (NAS).
Syntax
{
"Type": "ALIYUN::NAS::FileSystem",
"Properties": {
"SnapshotId": String,
"Description": String,
"StorageType": String,
"DeletionForce": Boolean,
"EncryptType": Integer,
"VpcId": String,
"ZoneId": String,
"Capacity": Integer,
"Tags": List,
"ProtocolType": String,
"FileSystemType": String,
"Bandwidth": Integer,
"VSwitchId": String,
"Duration": Integer,
"ChargeType": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ProtocolType | String | Yes | No | The protocol type. | Valid values:
|
StorageType | String | Yes | No | The storage type. |
|
DeletionForce | Boolean | No | Yes | Specifies whether to forcefully delete the file system. | Valid values:
|
Description | String | No | Yes | The description of the file system. | The description must be 2 to 128 characters in length. It must start with a letter and cannot start with |
ZoneId | String | No | No | The zone ID. | None. |
Tags | List | No | Yes | The tags of the file system. | You can add up to 20 tags to each file system. For more information, see Tags properties. |
SnapshotId | String | No | No | The snapshot ID. | You can use this property to specify a snapshot from which you create a NAS file system. This property is supported only for Extreme NAS file systems. Note If you create a file system from a snapshot, the version of the created file system must be the same as the version of the file system that is contained in the snapshot. If the file system versions are different, you must perform the following operations:
|
EncryptType | Integer | No | No | Specifies whether to encrypt the file system. You can use keys that are managed by Key Management Service (KMS) to encrypt data stored in the file system. When you read and write the encrypted data, you do not need to decrypt the data. | This property takes effect when FileSystemType is set to standard or extreme. Valid values:
|
Capacity | Integer | No | Yes | The capacity of the file system. | You must specify this property when FileSystemType is set to extreme or cpfs.
Unit: GB. |
FileSystemType | String | No | No | The type of the file system. | Valid values:
|
VpcId | String | No | No | The ID of the virtual private cloud (VPC). If you specify VpcId and VSwitchId, a default mount target is preconfigured when the file system is created. | You must specify this property when FileSystemType is set to cpfs. |
Bandwidth | Integer | No | No | The maximum throughput of the file system. | You must specify this property when FileSystemType is set to cpfs. The value of Bandwidth varies based on the value of Capacity. For more information, go to the CPFS buy page. Unit: Mbit/s. |
VSwitchId | String | No | No | The vSwitch ID. If you specify VpcId and VSwitchId, a default mount target is preconfigured when the file system is created. | You must specify this property when FileSystemType is set to cpfs. |
Duration | Integer | No | No | The subscription duration of the file system. | You must specify this property when ChargeType is set to Subscription. If you do not renew a subscription file system when it expires, the file system is automatically released. Valid values:
Unit: month. |
ChargeType | String | No | No | The billing method. | Valid values:
|
Tags syntax
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Key | String | Yes | No | The tag key. | The tag key must be 1 to 128 characters in length, and cannot contain |
Value | String | No | No | The tag value. | The tag value can be up to 128 characters in length, and cannot contain |
Return values
Fn::GetAtt
FileSystemId: the ID of the file system.
Examples
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Description: Test NAS FileSystem
Parameters: {}
Resources:
FileSystem:
Type: ALIYUN::NAS::FileSystem
Properties:
ProtocolType: NFS
StorageType: Capacity
Outputs:
FileSystemId:
Description: ID of the file system created
Value:
Fn::GetAtt:
- FileSystem
- FileSystemId
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Description": "Test NAS FileSystem",
"Parameters": {
},
"Resources": {
"FileSystem": {
"Type": "ALIYUN::NAS::FileSystem",
"Properties": {
"ProtocolType": "NFS",
"StorageType": "Capacity"
}
}
},
"Outputs": {
"FileSystemId": {
"Description": "ID of the file system created",
"Value": {
"Fn::GetAtt": [
"FileSystem",
"FileSystemId"
]
}
}
}
}
For more examples, visit nas.yml. In the examples, the following resource types are used: ALIYUN::NAS::FileSystem, ALIYUN::NAS::AccessGroup, ALIYUN::NAS::AccessRule, and ALIYUN::NAS::MountTarget.