You can call this operation to create a RAM directory.


Before you create a RAM directory, make sure that you have completed the following operations:

  • You have created a virtual private cloud (VPC) by calling the CreateVpc operation in a region where EDS is available.
  • You have created a vSwitch in the VPC by calling the CreateVSwitch operation, and the vSwitch resides in a zone where EDS is available.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateRAMDirectory

The operation that you want to perform. Set the value to CreateRAMDirectory.

RegionId String Yes cn-hangzhou

The ID of the region.

VSwitchId.N RepeatList Yes vsw-uf62w3qzt4aigvlcb****

The ID of vSwitch N. You can configure only one vSwitch.

DirectoryName String No testDirectoryName

The name of the directory. The name must be 2 to 255 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

This parameter is empty by default.

EnableAdminAccess Boolean No true

Specifies whether to grant the permissions of the local administrator to the desktop users. Default value: true.

Response parameters

Parameter Type Example Description
DirectoryId String dri-uf62w3qzt4aigvlcb****

The ID of the RAM directory.

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.