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.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateMountTarget |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The ID of the file system. |
c50f8***** |
| EnsRegionId |
string |
Yes |
The ID of the region. |
cn-beijing-cmcc |
| NetWorkId |
string |
Yes |
The ID of the network. |
n-***** |
| MountTargetName |
string |
Yes |
The name of the mount target. |
TestMountPath |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
70EACC9C-D07A-4A34-ADA4-A3DC0DE3C83E |
| Status |
string |
The state of the mount target. Valid values:
|
pending |
Examples
Success response
JSON format
{
"RequestId": "70EACC9C-D07A-4A34-ADA4-A3DC0DE3C83E",
"Status": "pending"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter.FileSystem.NotExisted | The specified file system does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.