Query data subscription list

List the data subscriptions received by the current workspace.

HTTP
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

Shell
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

keyword

string

No

Search by keyword.

status

string

No

Filter by subscription status. Can transmit unsubscribed, subscribing or subscribed.

page

integer

No

Page number. Default 1.

page_size

integer

No

Quantity per page. Default 20, maximum 100.

Successful response

JSON
{
  "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

code

string

OK on success.

msg

string

OK on success.

data

object

response data.

data.list

array of object

Current page subscription list. It is an empty array when there are no results.

data.total

integer

Total number of matches.

data.page

integer

Current page number.

data.page_size

integer

Quantity per page.

data.list[].id

string

Subscription ID.

data.list[].pub_name

string

Source release name.

data.list[].source_database_id

string

Source database ID.

data.list[].mo_database_name

string

Source database name.

data.list[].table_scope

object

Publish a shared table range.

data.list[].target_database_id

string

The ID of the subscription database in the target workspace. Empty string if not accepted.

data.list[].obj_display_name

string

The display name of the source database.

data.list[].obj_display_path

string

The display path of the source database.

data.list[].source_workspace_id

string

Source workspace ID.

data.list[].source_workspace_name

string

Source workspace name. Returned if there is a value.

data.list[].publisher

string

Publisher.

data.list[].published_at

string

Release time.

data.list[].status

string

Current subscription status: unsubscribed, subscribing or subscribed.

data.list[].sub_name

string

The name of the subscription database in the target workspace. Empty string if not accepted.

data.list[].subscribed_by

string

The identity to accept the subscription. Empty string if not accepted.

data.list[].created_at

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.

data.list[].table_scope.mode

string

Range mode: all or selected.

data.list[].table_scope.object_ids

array of string

List of table IDs when range mode is selected.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Error description.

data

null

Empty on error.

Last updated on