You can call this operation to submit a job. You can only run a job instance at a time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Required SubmitFlowJob

The operation that you want to perform. For API requests using the HTTP or HTTPS URL, this parameter is required. Set the value to SubmitFlowJob.

ClusterId String Required C-F32FB31D8295****

The ID of the cluster.

JobId String Required FJ-1A2FB31D8295****

The ID of the job.

ProjectId String Required FP-3535FE0BE5228 ****

The ID of the project.

Region ID String Required cn-hangzhou

The ID of the region where the streaming domain resides.

HostName String No emr-header-1.cluster-12345

Host name of the server on which the workflow runs. You can log on to the primary node to perform hostname command to view the corresponding values.

Conf String No {"key":"value"}

The configuration parameters of the job, for example, {"key1":"value1"}.If the key is params, the value of the parameter will cover what is running in the job.

Response parameters

Parameter Type Sample response Description
Id String FJI-9DDAAA3ADA5F****

The ID of the job instance.

RequestId String B46F8A2A-B46B-415C-8A9C-B01B99B775A2

The ID of the request.

Samples

Sample requests

http(s)://[Endpoint]/? Action=SubmitFlowJob
&ClusterId=C-F32FB31D8295****
&JobId=FJ-1A2FB31D8295****
&ProjectId=FP-3535FE0BE522****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<SubmitFlowJobResponse>
  <RequestId>B46F8A2A-B46B-415C-8A9C-B01B99B775A2</RequestId>
      <Id>FJI-9DDAAA3ADA5F****</Id>
</SubmitFlowJobResponse>

JSON format

{
    "RequestId": "B46F8A2A-B46B-415C-8A9C-B01B99B775A2",
    "Id": "FJI-9DDAAA3ADA5F****"
}

Error code

For a list of error codes, visit the API Error Center.