All Products
Search
Document Center

EventBridge:ListLumaKnowledgeBases

Last Updated:Sep 16, 2026

Lists all knowledge bases bound to a Luma Agent in a specified namespace. Returns the complete set of bindings without pagination.

Operation description

Lists the knowledge bases bound to a Luma Agent in a specified namespace. Results are returned in pages. To retrieve the next page, pass the NextToken value from the previous response. An empty NextToken indicates that no more data is available. Expired bindings are skipped, so the number of entries on a single page may be less than MaxResults. Do not determine whether the last page is reached based on an insufficient number of entries on the current page.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eventbridge:ListLumaKnowledgeBases

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AgentName

string

Yes

The name of the agent.

my_agent

Catalog

string

Yes

The name of the data catalog bound to the agent. You can call ListLumaCatalogs to obtain the catalog name.

my_catalog

Namespace

string

Yes

The name of the namespace bound to the agent. You can call ListLumaNamespaces to obtain the namespace name.

my_namespace

Response elements

Element

Type

Description

Example

object

Code

string

The response code. A value of Success indicates that the call was successful. If the call fails, a specific error code is returned.

Success

Data

object

The list of knowledge bases bound to the agent, including entries and pagination information.

KnowledgeBases

array

The list of knowledge bases bound to the agent.

[{"KnowledgeBaseName":"my-knowledge-base"}]

KnowledgeBase

The details of a knowledge base, including the status, metadata schema, and chunking and retrieval configurations.

MaxResults

integer

The maximum number of results per page that takes effect for this request. If MaxResults is not specified, this value is the server default. If the specified value exceeds the upper limit, this value is the adjusted value.

20

NextToken

string

The pagination token for the next page (an opaque string). Pass this value as the NextToken parameter in the next request to retrieve the next page. An empty value indicates that no more data is available.

ca1eb85f5d99c7d6a97e6****

TotalCount

integer

The total number of knowledge bases bound to the agent, regardless of the number of entries returned on the current page.

10

Message

string

The message returned by the operation. The value Operation success is returned if the call was successful. A specific error description is returned if the call fails.

Operation success

RequestId

string

The unique ID of the request. Use this ID for troubleshooting and when you submit a ticket.

34AD682D-5B91-5773-8132-AA38C130****

Success

boolean

Indicates whether the call was successful. A value of true indicates that the call was successful.

true

Examples

Success response

JSON format

{
  "Code": "Success",
  "Data": {
    "KnowledgeBases": [
      {
        "Catalog": "my_catalog",
        "ChunkConfiguration": {
          "HeadingLevel": 2,
          "MaxChunkSize": 600,
          "OverlapSize": 40,
          "PreprocessRules": {
            "RemoveUrlsAndEmails": false,
            "ReplaceConsecutiveWhitespace": true
          },
          "Separator": "\\\\n\\\\n",
          "Strategy": "BY_SEPARATOR"
        },
        "CreatedAt": "2026-08-24T10:00:00Z",
        "Description": "Product documentation knowledge base",
        "EmbeddingDimension": 1024,
        "EmbeddingModel": "text-embedding-v4",
        "FailureReason": "OssException: BucketAlreadyExists ...",
        "KnowledgeBaseName": "product-docs",
        "MetadataSchema": [
          {
            "Name": "department",
            "Type": "STRING",
            "Value": "EventHouse",
            "ValueMode": "CONSTANT"
          }
        ],
        "Namespace": "my_namespace",
        "SearchConfiguration": {
          "Mode": "HYBRID",
          "RankAlgorithm": "RRF",
          "RerankEnabled": false,
          "RerankModel": "qwen3-rerank",
          "RrfK": 60,
          "TopK": 20,
          "VectorWeight": 0.7
        },
        "Status": "ACTIVE",
        "UpdatedAt": "2026-08-24T10:00:00Z"
      }
    ],
    "MaxResults": 20,
    "NextToken": "ca1eb85f5d99c7d6a97e6****",
    "TotalCount": 10
  },
  "Message": "Operation success",
  "RequestId": "34AD682D-5B91-5773-8132-AA38C130****",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter The specified parameter is invalid
403 ServiceNotEnable Service not enable
404 AgentNotFound Agent not found
404 ResourceNotFound The specified resource is not bound to the agent

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.