Query runtime data sharding¶
Query the data fragments saved when the agent is running.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/agent-runtime/data-parts
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¶
Replace $WORKSPACE_ID, $CLOUDSIGMA_API_KEY in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/agent-runtime/data-parts" -H "X-API-Key: $CLOUDSIGMA_API_KEY" -H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The workspace ID to which it belongs. |
Successful response¶
{
"code": 0,
"data": {
"items": [],
"total": 0,
"limit": 0,
"offset": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Runtime data sharding description. |
|
string |
Data sharding type. Values: |
|
integer |
Data fragmentation protocol version. |
|
string |
Data flow direction. Value: |
|
string |
Transmission method. |
|
array of string |
Available methods. |
|
string |
Current status. |
|
string |
Description. |
|
object |
Data sharding structure. Returns if present. |
|
integer |
The number of records that match the current query conditions. |
|
integer |
The maximum number of queries for this time. |
|
integer |
The offset of this query. |
Error response¶
Parameter error returns HTTP 400/code=2. The data sharding service error is mapped to HTTP 500/code=13 according to the current interface. If the identity authentication fails, a string type error code may be returned first, which cannot be parsed according to the numeric business code.
{
"code": 15,
"message": "runtime read model is not available"
}
Field |
Type |
Description |
|---|---|---|
|
integer |
error code. |
|
string |
Error message for the caller. |