All Products
Search
Document Center

PolarDB:DescribeKBSyncLinkAttribute

Last Updated:Nov 03, 2026

Queries the details of a knowledge base synchronization link.

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

polardb:DescribeKBSyncLinkAttribute

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-hangzhou

KnowledgeBaseId

string

Yes

The unique identifier of the knowledge base.

kb-123456

LinkId

string

Yes

The unique identifier of the synchronization link.

pkbl-123456

Response elements

Element

Type

Description

Example

object

The response for querying the details of a knowledge base synchronization link.

ClientId

string

The client ID of the source application.

cli_a123456

Config

object

The synchronization configuration whitelist returned based on the source type. For DingTalk, UserId is returned. For Lark, FeishuChatMemberStaleTtlSeconds is returned.

FeishuChatMemberStaleTtlSeconds

integer

The validity period of the successful snapshot of Lark group members for fallback reuse, in seconds. This parameter is returned only for Lark synchronization links. A value of -1 indicates that the snapshot never expires. A value of 0 indicates that snapshot fallback reuse is disabled. A positive integer indicates the maximum age of the snapshot allowed for reuse. The valid value configured for the link is returned. If no value is configured, the default value -1 is returned.

-1

UserId

string

The ID of the DingTalk user who performs the operation. This parameter is returned only for DingTalk synchronization links.

manager123

CreationTime

string

The time when the synchronization link was created. The time is displayed in the YYYY-MM-DDTHH:mm:ssZ format (UTC time).

2026-09-22T12:00:00Z

Description

string

The description of the synchronization link.

Synchronize Lark knowledge base documents

ImPlatform

string

The source channel of the synchronization link. Valid values: OSS, DINGTALK, FEISHU, and SHAREPOINT.

FEISHU

LinkId

string

The unique identifier of the synchronization link.

pkbl-123456

LinkName

string

The name of the synchronization link.

feishu-doc-sync

RequestId

string

The request ID.

12345678-1234-1234-1234-1234567890ab

SourceDir

string

The source directory. For OSS sources, the bucket and object prefix in the oss:/// format are returned. For other sources, the directory identifier or path of the corresponding channel is returned.

/documents

SyncIntervalMinutes

integer

The automatic synchronization interval, in minutes.

60

SyncStatus

string

The status of the synchronization link.

RUNNING

Examples

Success response

JSON format

{
  "ClientId": "cli_a123456",
  "Config": {
    "FeishuChatMemberStaleTtlSeconds": -1,
    "UserId": "manager123"
  },
  "CreationTime": "2026-09-22T12:00:00Z",
  "Description": "Synchronize Lark knowledge base documents",
  "ImPlatform": "FEISHU",
  "LinkId": "pkbl-123456",
  "LinkName": "feishu-doc-sync",
  "RequestId": "12345678-1234-1234-1234-1234567890ab",
  "SourceDir": "/documents",
  "SyncIntervalMinutes": 60,
  "SyncStatus": "RUNNING"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.