查询单个权限组详情
更新时间:2026-06-17
描述
本接口用于查询权限组详情。
API Explorer
去调试
您可以在 API Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,API Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1POST /v{version}/authgroup?action=DescribeAuthGroup HTTP/1.1
2Host: rapidfs.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "instanceId": "rapidfs-KffjPuGy1ySv",
7 "authGroupId": "ag-w5ej99XgbBSL"
8}
请求头域
除公共头域外,无其他特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号 |
| instanceId | String | 是 | RequestBody参数 | 待查询的 rapidFS 实例唯一 ID |
| authGroupId | String | 是 | RequestBody参数 | 权限组id |
返回状态码
成功返回200,失败返回见错误码。
返回头域
除公共头域外,无其他特殊头域。
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| authGroupInfo | AuthGroupInfo | 权限组信息,见数据类型AuthGroupInfo |
请求示例
Plain Text
1POST /v2/authgroup?action=DescribeAuthGroup HTTP/1.1
2Host: rapidfs.bj.baidubce.com
3Authorization: authorization string
4{
5 "instanceId": "rapidfs-KffjPuGy1ySv",
6 "authGroupId": "ag-w5ej99XgbBSL"
7}
返回示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json;charset=UTF-8
3x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
4{
5 "authGroupInfo":
6 {
7 "authGroupName": "demo-authgroup",
8 "authGroupId": "ag-w5ej99XgbBSL",
9 "instanceId": "rapidfs-KffjPuGy1ySv",
10 "status": "CREATING",
11 "authInfos": [
12 {
13 "cidr": "0.0.0.0/0",
14 "mode": "ReadWrite",
15 "description": "auth allows read/write by default, cannot be deleted"
16 },
17 {
18 "cidr": "10.41.22.25",
19 "mode": "ReadOnly",
20 "description": null
21 },
22 {
23 "cidr": "10.41.22.26",
24 "mode": "ReadWrite",
25 "description": null
26 }
27 ]
28 }
29}
评价此篇文章
