Create mount target
Updated at:2025-11-11
Description
- Create a mount target for the file system and return its domain.
- Billing type: Postpay.
Request
Request structure
Plain Text
1POST /v{version}/cfs/{fsId} HTTP/1.1
2Host: cfs.bj.baidubce.com
3Authorization: authorization string
4{
5 "subnetId": subnetId
6}
Request headers: No special headers beyond common headers
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| fsId | String | Yes | URL parameter | ID of the FileSystem for which the MountTarget is to be created |
| subnetId | String | Yes | RequestBody | Subnet to which the MountTarget belongs; subnet is part of the VPC where the FS resides, which is a short ID |
| vpcId | String | Yes | RequestBody | Short ID of VPC to which the fs instance VIP belongs |
Response
Response status code: Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in Error Codes
Response headers: No special headers beyond common headers
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| domain | String | Assigned service DNS allows access to the service by mounting the file system through this DNS |
| mountId | String | ID of the mount target |
Example
Request:
Plain Text
1POST /v1/cfs/cfs-jVDkWrBBoj HTTP/1.1
2HOST cfs.bj.baidubce.com
3Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4
5{
6 "subnetId":"sbn-qwkkxpvenm0z"
7}
Response:
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 10 Apr 2016 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7{
8 "mountId" : "53585364776c6d577a2f424444796a2b6641584251773d3d"
9 "domain":"cfs-jVDkWrBBoj-sdfoijnvsdf.bce.qa.sandbox.baidu.com"
10}
