Update file system tags
Updated at:2025-11-11
Description
-
Update file system tags
- When specifying a single FileSystem, update all tags of this FileSystem to the tags specified by the parameters (if no tags are filled, unbind all tags of this FileSystem)
- When specifying multiple FileSystem, add parameter-specified tags to designated FileSystem (no actual effect if tags are left blank)
- The maximum number of transferable FileSystems is set to10, and the maximum number of tags is 100
Request
Request structure
Plain Text
1POST /v{version}/cfs?tag HTTP/1.1
2Host: cfs.bj.baidubce.com
3Authorization: authorization string
4{
5 "fsId": [
6 "cfs-xxxxx",
7 "cfs-yyyyy"
8 ],
9 "tags": [
10 { "tagKey": "aaa", "tagValue": "bbb" },
11 { "tagKey": "bbb", "tagValue": "ccc" }
12 ]
13}
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. |
| tag | None | Yes | Query | |
| fsId | List<String> | Yes | RequestBody | FileSystem ID list |
| tags | List<Tag> | No | RequestBody |
Response parameters: No special headers beyond common headers
Example
Request:
Plain Text
1POST /v{version}/cfs?tag HTTP/1.1
2Host: cfs.bj.baidubce.com
3Authorization: authorization string
4{
5 "fsId": [
6 "cfs-xxxxx",
7 "cfs-yyyyy"
8 ],
9 "tags": [
10 { "tagKey": "aaa", "tagValue": "bbb" },
11 { "tagKey": "bbb", "tagValue": "ccc" }
12 ]
13}
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
