Query release summary

Query the number of data releases in the current workspace and the number of target workspaces.

HTTP
GET $CLOUDSIGMA_API_BASE/data-share/publishes/summary

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 workspace ID that can access the target workspace.

Request parameters

Shell
curl "$CLOUDSIGMA_API_BASE/data-share/publishes/summary" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

This request does not contain path parameters, query parameters, or request body.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "total": 3,
    "target_total": 5
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data

object

response data.

data.total

integer

The number of active data releases that can be read by the current identity.

data.target_total

integer

The number of target workspaces after deduplication in readable active releases.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "服务器内部错误",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Error description.

data

null

Empty on error.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

ErrWorkspaceRequired, ErrParamInvalid

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

403

ErrPermissionDenied

The current identity or active role does not have permission for this operation.

Use an authorized identity or contact an administrator to grant access.

404

ErrSourceNotFound

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

500

ErrServer

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrServiceUnavailable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on