File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,16 +35,18 @@ echo "Attempting to pause the Workflow.."
3535echo " "
3636
3737# ds-snippet-start:Maestro2Step3
38+ # apx-snippet-start:pauseNewWorkflowInstances
3839response=$( mktemp /tmp/response-wftmp.XXXXXX)
3940Status=$(
4041 curl -w ' %{http_code}' --request POST " ${base_path} /accounts/${ACCOUNT_ID} /workflows/${workflow_id} /actions/pause" \
4142 " ${Headers[@]} " \
4243 --output ${response}
4344)
45+ # apx-snippet-end:pauseNewWorkflowInstances
4446# If the status code returned is greater than 201 (OK / Accepted), display an error message with the API response.
4547if [[ " $Status " -gt " 201" ]]; then
4648 echo " "
47- echo " Unable to retrieve workflow instance : ${WORKFLOW_INSTANCE_ID } "
49+ echo " Unable to pause workflow: ${workflow_id } "
4850 echo " "
4951 cat $response
5052 exit 0
You can’t perform that action at this time.
0 commit comments