Query data subscription list¶
List the data subscriptions received by the current workspace.
GET $CLOUDSIGMA_API_BASE/data-share/subscriptions
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/data-share/subscriptions?page=1&page_size=20" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Search by keyword. |
|
string |
No |
Filter by subscription status. Can transmit |
|
integer |
No |
Page number. Default |
|
integer |
No |
Quantity per page. Default |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"list": [
{
"id": "201",
"pub_name": "sales-share",
"source_database_id": "101",
"mo_database_name": "sales",
"table_scope": {
"mode": "selected",
"object_ids": [
"1001"
]
},
"target_database_id": "",
"obj_display_name": "sales",
"obj_display_path": "catalog/sales",
"source_workspace_id": "ws-001",
"source_workspace_name": "数据工作区",
"publisher": "user-001",
"published_at": "2026-08-18T10:00:00Z",
"status": "unsubscribed",
"sub_name": "",
"subscribed_by": "",
"created_at": "2026-08-18T10:00:00Z"
}
],
"total": 1,
"page": 1,
"page_size": 20
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
response data. |
|
array of object |
Current page subscription list. It is an empty array when there are no results. |
|
integer |
Total number of matches. |
|
integer |
Current page number. |
|
integer |
Quantity per page. |
|
string |
Subscription ID. |
|
string |
Source release name. |
|
string |
Source database ID. |
|
string |
Source database name. |
|
object |
Publish a shared table range. |
|
string |
The ID of the subscription database in the target workspace. Empty string if not accepted. |
|
string |
The display name of the source database. |
|
string |
The display path of the source database. |
|
string |
Source workspace ID. |
|
string |
Source workspace name. Returned if there is a value. |
|
string |
Publisher. |
|
string |
Release time. |
|
string |
Current subscription status: |
|
string |
The name of the subscription database in the target workspace. Empty string if not accepted. |
|
string |
The identity to accept the subscription. Empty string if not accepted. |
|
string |
The creation time of the subscription record, not the time the subscription was accepted. It may also have value when it has not yet been accepted. |
|
string |
Range mode: |
|
array of string |
List of table IDs when range mode is |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
|
null |
Empty on error. |