All Products
Search
Document Center

ENS:CreateMountTarget

Last Updated:Mar 12, 2024

Creates a mount target.

Operation description

Precautions

After you call this operation, a mount target is not immediately created. Therefore, we recommend that you call the DescribeMountTargets operation to query the status of the mount target. If the mount target is in the Active state, you can then mount the file system. Otherwise, the file system may fail to be mounted.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FileSystemIdstringYes

The ID of the file system.

c50f8*****
EnsRegionIdstringYes

The ID of the region.

cn-beijing-cmcc
NetWorkIdstringYes

The ID of the network.

n-*****
MountTargetNamestringYes

The name of the mount target.

TestMountPath

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

70EACC9C-D07A-4A34-ADA4-A3DC0DE3C83E
Statusstring

The state of the mount target. Valid values:

  • active
  • inactive
  • pending
  • deleting
pending

Examples

Sample success responses

JSONformat

{
  "RequestId": "70EACC9C-D07A-4A34-ADA4-A3DC0DE3C83E",
  "Status": "pending"
}

Error codes

HTTP status codeError codeError message
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.
400InvalidParameter.FileSystem.NotExistedThe specified file system does not exist.

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

Change history

Change timeSummary of changesOperation
No change history