Modifies a mount target.
Usage notes
You can modify the mount targets of only General-purpose NAS file systems and Extreme NAS file systems.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ModifyMountTarget | The operation that you want to perform. Set the value to ModifyMountTarget. |
| FileSystemId | String | Yes | 1ca404**** | The ID of the file system.
|
| MountTargetDomain | String | Yes | 1ca404a666-w****.cn-hangzhou.nas.aliyuncs.com | The IPv4 domain name of the mount target. |
| AccessGroupName | String | No | classic-test | The name of the permission group that is attached to the mount target. |
| Status | String | No | Inactive | The status of the mount target. Valid values:
|
| DualStackMountTargetDomain | String | No | 174494b666-x****.dualstack.cn-hangzhou.nas.aliyuncs.com | The dual-stack (IPv4 and IPv6) domain name of the mount target. Note Only Extreme NAS file systems that reside in the Chinese mainland support IPv6. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | FF387D95-34C4-4879-B65A-99D1FA1B**** | The request ID. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyMountTarget
&FileSystemId=1ca404****
&MountTargetDomain=1ca404a666-w****.cn-hangzhou.nas.aliyuncs.com
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<RequestId>FF387D95-34C4-4879-B65A-99D1FA1B****</RequestId>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "FF387D95-34C4-4879-B65A-99D1FA1B****"
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidFileSystem.NotsupportedIPv6 | The file system does not support IPv6. | The file system does not support IPv6. |
| 400 | InvalidParam.MountTargetDomain | The specified mount target domain does not exist. | The specified domain name of the mount target does not exist. Check whether the domain name is correct. |
| 400 | InvalidParam.DualStackMountTargetDomain | The specified dual stack mount target domain does not exist. | The specified dual-stack domain name of the mount target does not exist. Check whether the domain name is correct. |
For a list of error codes, see Service error codes.