Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 提供账号查询、创建、删除的APIGW接口 #2472 #2512

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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