Queries the list of knowledge bases.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeKnowledgeBases |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-beijing |
| KnowledgeSpaceId |
string |
No |
The unique identifier of the knowledge space. |
pks-xxxxxx |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
30 |
| Keyword |
string |
No |
The keyword for searching knowledge bases. |
testkb |
| Status |
string |
No |
The status of the knowledge base. |
Activation |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. Valid values: 30, 50, and 100. Default value: 30. |
30 |
| TotalRecordCount |
integer |
The total number of records. |
1 |
| Items |
array<object> |
The list of knowledge bases. |
|
|
object |
|||
| KnowledgeBaseId |
string |
The unique identifier of the knowledge base. |
pkb-xxxxxx |
| Name |
string |
The name of the knowledge base. |
testName |
| Description |
string |
The description of the knowledge base. |
testDesc |
| KnowledgeSpaceId |
string |
The ID of the knowledge space. |
pks-xxxxxx |
| KnowledgeBaseType |
string |
The type of the knowledge base. Valid values:
|
PUBLIC |
| TotalDocs |
integer |
The total number of documents. |
1 |
| TotalSizeBytes |
integer |
The total size in bytes. |
231984 |
| Status |
string |
The status of the knowledge base. |
Activation |
| CreationTime |
string |
The creation time. |
2025-03-25T09:37:10Z |
| BindingAppCount |
integer |
The number of AI applications bound to the knowledge base. |
2 |
Examples
Success response
JSON format
{
"RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
"PageNumber": 1,
"PageSize": 30,
"TotalRecordCount": 1,
"Items": [
{
"KnowledgeBaseId": "pkb-xxxxxx",
"Name": "testName",
"Description": "testDesc",
"KnowledgeSpaceId": "pks-xxxxxx",
"KnowledgeBaseType": "PUBLIC",
"TotalDocs": 1,
"TotalSizeBytes": 231984,
"Status": "Activation",
"CreationTime": "2025-03-25T09:37:10Z",
"BindingAppCount": 2
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.