All Products
Search
Document Center

WUYING Workspace:CreateNASFileSystem

Last Updated:Apr 18, 2023

Creates an Apsara File Storage NAS (NAS) file system.

Operation Description

  • You can create a NAS file system for each standard workspace so that cloud desktops within the workspace can share files.
  • The system creates a General-purpose NAS file system and generates a default mount target. The storage types of the NAS file system includes Capacity type and Performance type. The Capacity type provides 10 PiB of storage while the Performance type provides only 1 PiB of storage.
  • NAS file systems are billed on a pay-as-you-go basis. You are charged based on the amount of used storage. You can also purchase resource plans to offset the storage fees of the NAS file systems.

For more information, see Create a NAS file system.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region.

cn-hangzhou
OfficeSiteIdstringYes

The ID of the workspace.

cn-hangzhou+dir-363353****
DescriptionstringYes

The description of the NAS file system.

testDescription
StorageTypestringNo

The storage type of the NAS file system. Valid values:

  • Capacity
  • Performance

Default value: Capacity.

Capacity
EncryptTypestringNo

Specifies whether to encrypt the data in the NAS file system. You can use keys that are managed by Key Management Service (KMS) to encrypt the data that is stored in a NAS file system. When you read and write the encrypted data, the data is automatically decrypted. Valid values:

  • 0: does not encrypt the data in the NAS file system.
  • 1: encrypts the data in the NAS file system by using NAS-managed keys.

Default value: 0.

0

Response parameters

ParameterTypeDescriptionExample
object

The object that is returned.

FileSystemIdstring

The ID of the NAS file system.

04f314****
FileSystemNamestring

The name of the NAS file system.

testNAS
MountTargetDomainstring

The domain name of the mount target.

04f314****-at***.cn-hangzhou.nas.aliyuncs.com
RequestIdstring

The ID of the request.

269BDB16-2CD8-4865-84BD-11C40BC21DB0
OfficeSiteIdstring

The ID of the workspace.

cn-hangzhou+dir-363353****

Examples

Sample success responses

JSONformat

{
  "FileSystemId": "04f314****",
  "FileSystemName": "testNAS",
  "MountTargetDomain": "04f314****-at***.cn-hangzhou.nas.aliyuncs.com",
  "RequestId": "269BDB16-2CD8-4865-84BD-11C40BC21DB0",
  "OfficeSiteId": "cn-hangzhou+dir-363353****"
}

Error codes

For a list of error codes, visit the Service error codes.