Create Permission Group
Updated at:2025-11-11
Description
Create a new permission group
Request
Request structure
Plain Text
1POST /v{version}/accessGroup
2Host: cfs.bj.baidubce.com
3Authorization: authorization string
4{
5 "accessGroupName": name
6 "description": desc
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. |
| accessGroupName | String | Yes | RequestBody | The name of the newly created permission group must be 1 to 65 bytes in length, starting with a letter and containing letters, numbers, and the characters - _ . |
| description | String | No | RequestBody | The description for a newly created permission group must not exceed 1,024 bytes in length |
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
1POST /v1/accessGroup 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 "accessGroupName": "ag_test"
6 "description": "access group for test"
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
