View file execution records¶
View workflow job records triggered by the file based on the file ID. Returns an empty list when no file ID is provided.
GET $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/file-executions
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. The results are filtered by workflows that can be read by the current identity. If there are no readable workflows, an empty list is returned. A successful query does not prove that the caller has read permission on the file itself.
Prepare personal access token, target workspace ID and the file ID to be queried that can access the target workspace.
Query parameters¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $FILE_ID with actual values.
curl "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/file-executions?file_id=$FILE_ID" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
The file ID to query. When omitted, an empty list is returned. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"executions": [
{
"execution_id": "run-001",
"workflow_id": "wf-001",
"status": "completed",
"scheduler_visible": false
}
],
"total": 1
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
object |
The data returned by this operation. |
|
array of object |
Job list. |
|
string |
Job ID. |
|
string |
workflow ID. |
|
string |
Status: |
|
string |
Execution mode: |
|
string |
Start time in RFC 3339 format. |
|
string |
End time in RFC 3339 format. |
|
string |
Creation time. In RFC 3339 format. |
|
string |
Last updated time. In RFC 3339 format. |
|
string |
Association ID. |
|
boolean |
Whether the scheduler is visible. |
|
string |
status information. The values are |
|
string |
error message. |
|
integer |
The total number under the current filter criteria. |
Error response¶
{
"code": "ErrWorkspaceRequired",
"msg": "需要工作区 ID"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Readable error message. |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
401 |
|
Missing or invalid authentication credentials. |
Check the credential type, expiration, and authentication header. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |