Skip to content

Commit

Permalink
feat: 提供账号查询、创建、删除的APIGW接口 TencentBlueKing#2472
Browse files Browse the repository at this point in the history
补充get_account_list接口参数
  • Loading branch information
jsonwan committed Oct 12, 2023
1 parent 7b790fc commit dd2120d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/apidoc/bk-api-gateway/v3/zh/get_account_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@
| bk_scope_id | string || 资源范围ID, 与bk_scope_type对应, 表示业务ID或者业务集ID |
| bk_biz_id | long || *已弃用*。业务ID。此字段已被弃用并由字段bk_scope_type+bk_scope_id替换 |
| category | int || 账号用途(1:系统账号,2:DB账号),不传则不区分 |
| account | string || 账号名称 |
| alias | string || 账号别名 |
| start | int || 分页记录起始位置,不传默认为0 |
| length | int || 单次返回最大记录数,最大1000,不传默认为20 |

### 请求参数示例

- GET
```json
/api/v3/get_account_list?bk_scope_type=biz&bk_scope_id=1&category=1&start=0&length=1
/api/v3/get_account_list?bk_scope_type=biz&bk_scope_id=1&category=1&account=aaa&alias=aaa&start=0&length=1
```

### 返回结果示例
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
| bk_scope_type | string || 资源范围类型。可选值: biz - 业务,biz_set - 业务集 |
| bk_scope_id | string || 资源范围ID, 与bk_scope_type对应, 表示业务ID或者业务集ID |
| category | int || 账号用途(1:系统账号,2:DB账号),不传则不区分 |
| account | string || 账号名称 |
| alias | string || 账号别名 |
| start | int || 分页记录起始位置,不传默认为0 |
| length | int || 单次返回最大记录数,最大1000,不传默认为20 |

Expand All @@ -26,6 +28,8 @@
"bk_scope_type": "biz",
"bk_scope_id": "1",
"category": 1,
"account": "aaa",
"alias": "aaa",
"start": 0,
"length": 1
}
Expand Down

0 comments on commit dd2120d

Please sign in to comment.