Pause workflow¶
Pauses the specified workflow and the current pauseable execution of the workflow.
POST $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/pause
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. First query the workflow details and confirm the workflow to be paused. Prepare personal access token and target workspace ID with workflow management permissions.
Path parameters¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID and $WORKFLOW_ID with actual values.
curl -X POST "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/$WORKFLOW_ID/pause" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The workflow ID to pause. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"workflow": {
"id": "wf-001",
"name": "daily-import",
"status": "paused",
"available_actions": [
"resume",
"update",
"delete"
],
"execution_summary": {
"total_executions": 8,
"active_executions": 0
},
"source_type": "nl2dsl",
"execution_mode": "one_shot",
"trigger_summary": {
"mode": "one_shot",
"configured": false,
"enabled": false
},
"created_at": "2026-10-14T00:00:00Z",
"updated_at": "2026-10-14T00:00:00Z",
"dsl_yaml": "",
"definition_format": "dsl"
}
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
object |
The data returned by this operation. |
|
object |
MOWL workflow definition. |
|
string |
workflow ID. |
|
string |
workflow name. |
|
string |
Description of the current object. |
|
string |
Source type. The values are |
|
string |
The state after suspension. The values are |
|
array of string |
Action hints for the current state. They do not indicate that the current user has passed permission checks. |
|
string |
Execution mode: |
|
string |
Cron expressions. |
|
string |
Association ID. |
|
string |
Association ID. |
|
string |
Association ID. |
|
string |
Association ID. |
|
array of object |
Computing resource binding. |
|
string |
ID of the current object. |
|
string |
The name of the current object. |
|
boolean |
Whether this is a workflow-level binding. |
|
array of string |
Node name list. |
|
object |
Perform summarization. |
|
integer |
Total job count. |
|
integer |
Active job count. |
|
string |
Association ID. |
|
string |
Active job status: |
|
string |
Association ID. |
|
string |
Most recent job status: |
|
string |
time information. |
|
object |
Trigger configuration summary. |
|
string |
Scope or execution mode: |
|
boolean |
Has it been configured? |
|
boolean |
Whether to enable. |
|
integer |
Association ID. |
|
string |
Cron expressions. |
|
string |
Display information. |
|
string |
Creation time. In RFC 3339 format. |
|
string |
Last updated time. In RFC 3339 format. |
|
string |
Objective statement. |
|
string |
planning model. |
|
string |
workflow DSL text. |
|
object |
MOWL workflow definition objects allow extended keys. |
|
string |
Define the format. The values are |
|
object |
Run the form. |
|
string |
Title text. |
|
string |
Description of the current object. |
|
array of object |
Field definition. |
|
string |
Form field ID used to run input and layout associations. |
|
string |
Show labels. |
|
string |
Description of the current object. |
|
string |
Input control type. |
|
string |
JSON type. |
|
string |
Model type label. |
|
boolean |
Is it required? |
|
JSON value |
Default value. |
|
boolean |
Is there a default value? |
|
string |
Enter the prompt. |
|
string |
String matching pattern. |
|
string |
Field path in run configuration. |
|
string |
The block it belongs to. |
|
string |
The group it belongs to. |
|
string |
Value when enabled. |
|
string |
value when closed. |
|
boolean |
Whether to hide. |
|
boolean |
Whether it is read-only. |
|
boolean |
Whether it contains sensitive values. |
|
array of object |
Optional. |
|
string |
Show labels. |
|
JSON value |
Value. |
|
string |
Description of the current object. |
|
number |
minimum value. |
|
number |
maximum value. |
|
array of string |
Allowed file types. |
|
string |
Resource type. |
|
object |
Show conditions. |
|
string |
Form field ID used to run input and layout associations. |
|
JSON value |
Value. |
|
string or object or null |
Value binding position. |
|
string |
The name of the node to which this field belongs. |
|
string |
The positioning name of the node to which this field belongs. |
|
object |
Run the layout. |
|
string |
The current resource version. |
|
array of object or null |
Field grouping. |
|
string |
Layout group ID. |
|
string |
Title text. |
|
string |
Display information. |
|
string |
Node ID. |
|
array of string or null |
Field ID within the group. |
|
object |
Guidelines for using forms. |
|
string |
Boot instructions. |
|
array of object |
Path list. |
|
string |
ID of the current object. |
|
string |
Show labels. |
|
string |
Description of the current object. |
|
array of string or null |
Field ID within the group. |
|
array of object |
Field grouping. |
|
string |
ID of the current object. |
|
string |
Show labels. |
|
array of string or null |
List of path IDs. |
|
array of string or null |
Field ID within the group. |
|
array of object or null |
Field definition. |
|
string |
Form field ID used to run input and layout associations. |
|
string |
Associated roles. |
|
string |
Additional explanation. |
|
string |
Layout group ID. |
|
array of object |
Is it fixed? |
|
string |
Show labels. |
|
string |
Value. |
|
object |
The default running value object allows extended keys. |
|
object |
Schematic objects allow extended keys. |
|
object |
Final state notification configuration objects allow extended keys. |
|
string |
Workflow definition ID. |
Error response¶
{
"code": "ErrConflict",
"msg": "资源状态冲突"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
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. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
409 |
|
Conflict in resource state, request payload, or concurrent modification. |
Re-read the current state and version, then handle according to the latest result. |
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. |