forked from TencentBlueKing/bk-user
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,30 @@ | ||
### Description | ||
|
||
Query the tenant list by pagination | ||
|
||
### Parameters | ||
|
||
| Name | Type | Required | Description | | ||
|-----------|------|----------|-----------------------------------------| | ||
| page | int | No | page number, default is 1 | | ||
| page_size | int | No | number of pages per page, default is 10 | | ||
|
||
### Request Example | ||
|
||
```json5 | ||
// URL Query Parameters | ||
page=1&page_size=10 | ||
``` | ||
Query the tenant list | ||
|
||
### Response Example | ||
|
||
```json5 | ||
{ | ||
"data": { | ||
"count": 2, | ||
"results": [ | ||
{ | ||
"id": "default", | ||
"name": "Default", | ||
"status": "enabled" | ||
}, | ||
{ | ||
"id": "test", | ||
"name": "Test", | ||
"status": "disabled" | ||
} | ||
] | ||
} | ||
"data": [ | ||
{ | ||
"id": "default", | ||
"name": "Default", | ||
"status": "enabled" | ||
}, | ||
{ | ||
"id": "test", | ||
"name": "Test", | ||
"status": "disabled" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### Response Parameters Description | ||
|
||
| Name | Type | Description | | ||
|--------|--------|------------------------------------------------------------| | ||
| count | int | the total number of tenants | | ||
| id | string | tenant ID | | ||
| name | string | the name of tenant | | ||
| status | string | the status of tenant, which can be `enabled` or `disabled` | |
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 |
---|---|---|
@@ -1,48 +1,30 @@ | ||
### 描述 | ||
|
||
分页查询租户列表 | ||
|
||
### 输入参数 | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
|-----------|------|----|-------------| | ||
| page | int | 否 | 页数, 默认为 1 | | ||
| page_size | int | 否 | 每页数量,默认为 10 | | ||
|
||
### 请求示例 | ||
|
||
```json5 | ||
// URL Query 参数 | ||
page=1&page_size=10 | ||
``` | ||
查询租户列表 | ||
|
||
### 响应示例 | ||
|
||
```json5 | ||
{ | ||
"data": { | ||
"count": 2, | ||
"results": [ | ||
{ | ||
"id": "default", | ||
"name": "Default", | ||
"status": "enabled" | ||
}, | ||
{ | ||
"id": "test", | ||
"name": "Test", | ||
"status": "disabled" | ||
} | ||
] | ||
} | ||
"data": [ | ||
{ | ||
"id": "default", | ||
"name": "Default", | ||
"status": "enabled" | ||
}, | ||
{ | ||
"id": "test", | ||
"name": "Test", | ||
"status": "disabled" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### 响应参数说明 | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
|--------|--------|---------------------------------| | ||
| count | int | 租户总数 | | ||
| id | string | 租户 ID | | ||
| name | string | 租户名 | | ||
| status | string | 租户状态,enabled 表示启用,disabled 表示禁用 | |