Update file system
Updated at:2025-11-11
Description
Update the configuration information of a filesystem
Request
Request structure
Plain Text
1PUT /v{version}/cfs/{fsId} HTTP/1.1
2Host: cfs.bj.baidubce.com
3Authorization: authorization string
4{
5 "fsName": name
6 "capacityQuota": 1075838976
7}
Request headers: No special headers beyond common headers
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | The current API version number is 1. |
| fsId | String | Yes | URL parameter | Update the FileSystem ID. |
| fsName | String | No | RequestBody | Choose a FileSystem name that is easy to remember. It should be 1–65 bytes long, start with a letter, and may include letters, numbers, and the characters -_/. |
| capacityQuota | uint64 | No | RequestBody | Updated quota value: If setting fails or the value is 0, no custom hard limit is applied; otherwise, it represents the maximum capacity (minimum of 1 GB, maximum of 10 PB), specified in bytes. |
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: None
Example
Request:
Plain Text
1PUT /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 "fsName":"cfs-for-test"
6}
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
