All Products
Search
Document Center

CloudFlow:StartSyncExecution

Last Updated:Apr 11, 2024

Synchronously starts an execution in a flow.

Operation description

  • Only flows of the express execution mode are supported.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
FlowNamestringYes

The name of the flow in which you want to start the execution. The name is unique within the same region and cannot be modified after the flow is created. Set this parameter based on the following rules:

  • The name can contain letters, digits, underscores (_), and hyphens (-).
  • The name must start with a letter or an underscore (_).
  • The name is case-sensitive.
  • The name must be 1 to 128 characters in length.
my_flow_name
ExecutionNamestringNo

The name of the execution that you want to start. The name must meet the following conventions:

  • The name can contain letters, digits, underscores (_), and hyphens (-).
  • The name must start with a letter or an underscore (_).
  • The name is case-sensitive.
  • The name must be 1 to 128 characters in length.

Different from the StartExecution operation, in the synchronous execution mode, the execution name is no longer required to be unique within a flow. You can choose to provide an execution name to identify the current execution. In this case, the system adds a UUID to the current execution name. The used format is {ExecutionName}:{UUID}. If you do not specify the execution name, the system automatically generates an execution name.

my_exec_name
InputstringNo

The input of the execution, which is in the JSON format.

{"key":"value"}

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

testRequestId
FlowNamestring

The name of the flow.

my_flow_name
Namestring

The name of the execution.

my_exec_name:{UUID}
Statusstring

The status of the execution. Valid values:

  • Starting
  • Running
  • Stopped
  • Succeeded
  • Failed
  • TimedOut
Succeeded
ErrorCodestring

The error code that is returned if the execution failed.

ActionNotSupported
ErrorMessagestring

The error message that indicates the execution timed out.

Standard execution is not supported
Outputstring

The output of the execution, which is in the JSON format.

{"key":"value"}
StartedTimestring

The time when the execution started.

2019-01-01T01:01:01.001Z
StoppedTimestring

The time when the execution stopped.

2019-01-01T01:01:01.001Z

Examples

Sample success responses

JSONformat

{
  "RequestId": "testRequestId",
  "FlowName": "my_flow_name",
  "Name": "my_exec_name:{UUID}",
  "Status": "Succeeded",
  "ErrorCode": "ActionNotSupported",
  "ErrorMessage": "Standard execution is not supported",
  "Output": "{\"key\":\"value\"}",
  "StartedTime": "2019-01-01T01:01:01.001Z",
  "StoppedTime": "2019-01-01T01:01:01.001Z"
}

Error codes

HTTP status codeError codeError messageDescription
400EntityTooLargeThe payload size exceeds maximum allowed size (%s bytes).The payload size exceeds maximum allowed size (%s bytes).
400ExecutionAlreadyExistsExecution %s for flow %s already exists.Execution %s for flow %s already exists.
400InvalidArgumentParameter error.Parameter error.
400MissingRequiredHeaderThe HTTP header '%s' must be specified.The HTTP header '%s' must be specified.
400MissingRequiredParamsThe HTTP query '%s' must be specified.The HTTP query '%s' must be specified.
400ActionNotSupportedThe requested API operation %s is incorrect. Please check.The requested API operation %s is incorrect. Please check.
400APIVersionNotSupportedThe requested API version %s is not supported yet. Please check.The requested API version %s is not supported yet. Please check.
403InvalidAccessKeyIDThe AccessKey ID %s is invalid.The AccessKey ID %s is invalid.
403RequestTimeTooSkewedThe difference between the request time %s and the current time %s is too large.The difference between the request time %s and the current time %s is too large.
403SignatureNotMatchThe request signature we calculated does not match the signature you provided. Check your access key and signing method.The calculated signature of the request does not match the signature you provided. Check your AccessKey Secret and signing algorithm.
403AccessDeniedThe resources does not belong to you.The request is denied due to the authority check failure.
404FlowNotExistsFlow %s does not exist.Flow %s does not exist.
415UnsupportedMediaTypeThe content type must be "application/json".The content type must be "application/json".
429ResourceThrottledThe request is throttled. Please try again later.The request is throttled. Please try again later.
500InternalServerErrorAn internal error has occurred. Please retry.An internal error has occurred. Please retry.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-21The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 415
    delete Error Codes: 429
    delete Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    delete Input Parameters: RequestId