-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added query user leader information by bk_username (#2031)
- Loading branch information
Showing
8 changed files
with
228 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
### Description | ||
|
||
Query user's list of leaders | ||
|
||
### Parameters | ||
|
||
| Name | Type | Required | Description | | ||
|----------------|---------|----------|------------------------------------------------| | ||
| bk_username | string | Yes | Blueking user's unique identifier | | ||
|
||
### Request Example | ||
|
||
``` | ||
// URL Path Parameter | ||
/api/v3/open/tenant/users/mzmwjffhhbjg4fxz/leaders/ | ||
``` | ||
|
||
### Response Example for Status Code 200 | ||
|
||
```json5 | ||
{ | ||
"data": [ | ||
{ | ||
"bk_username": "q9k6bhqks0ckl5ew", | ||
"display_name": "张三" | ||
}, | ||
{ | ||
"bk_username": "er0ugcammqwf1q5w", | ||
"display_name": "李四" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### Response Parameters Description | ||
|
||
| Name | Type | Description | | ||
|--------------|--------|-----------------------------------| | ||
| bk_username | string | Blueking user's unique identifier | | ||
| display_name | string | User's display_name | | ||
|
||
|
||
# Response Example for Non-200 Status Code | ||
|
||
```json5 | ||
// status_code = 404 | ||
{ | ||
"error": { | ||
"code": "NOT_FOUND", | ||
"message": "Object not found" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
### 描述 | ||
|
||
查询用户 Leader 列表 | ||
|
||
### 输入参数 | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
|----------------|---------|----|--------------------| | ||
| bk_username | string | 是 | 蓝鲸用户唯一标识 | | ||
|
||
### 请求示例 | ||
|
||
``` | ||
// URL Path 参数 | ||
/api/v3/open/tenant/users/mzmwjffhhbjg4fxz/leaders/ | ||
``` | ||
|
||
### 状态码 200 的响应示例 | ||
|
||
```json5 | ||
{ | ||
"data": [ | ||
{ | ||
"bk_username": "q9k6bhqks0ckl5ew", | ||
"display_name": "张三" | ||
}, | ||
{ | ||
"bk_username": "er0ugcammqwf1q5w", | ||
"display_name": "李四" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### 响应参数说明 | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
|--------------|--------|----------| | ||
| bk_username | string | 蓝鲸用户唯一标识 | | ||
| display_name | string | 用户展示名称 | | ||
|
||
|
||
### 状态码非 200 的响应示例 | ||
|
||
```json5 | ||
// status_code = 404 | ||
{ | ||
"error": { | ||
"code": "NOT_FOUND", | ||
"message": "对象未找到" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters