You can call this operation to submit a job. Job instances are not allowed to be running at the same time.

Request parameters

Name Type Required Example Description
ClusterId String Yes C-F32FB31D82954C64 The ID of the cluster.
JobId String Yes FJ-1A2FB31D82954C64 The ID of the job.
ProjectId String Yes FP-3535FE0BE5224A47 The ID of the project.
RegionId String Yes cn-hangzhou The ID of the region.
Conf String No {"key":"value"} The configurations of parameters. When the key is params, the corresponding value overwrites the run parameter value in the job.
HostName String No emr-header-1.cluster-12345 The hostname of the host on which the workflow runs. Only master nodes and gateways are supported. You can use the hostname command to view the hostname of the host that you want for running the workflow.

Response parameters

Name Type Example Description
RequestId String B46F8A2A-B46B-415C-8A9C-B01B99B775A2 The ID of the request.
Id String FJI-9DDAAA3ADA5F6FA2 The ID of the job instance.

Examples

  • Sample requests
    
    /? Action=SubmitFlowJob
    &ClusterId=C-F32FB31D82954C64
    &JobId=FJ-1A2FB31D82954C64
    &ProjectId=FP-3535FE0BE5224A47
    &RegionId=cn-hangzhou
    &Conf={"key":"value"}
    &HostName=emr-header-1.cluster-12345
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"Id":"FJI-9DDAAA3ADA5F6FA2",
    	"RequestId":"B46F8A2A-B46B-415C-8A9C-B01B99B775A2"
    }
  • Error response examples
    JSON format
    {
    	"code":"FLOW_API_FAILED",
    	"message":"project not exist",
    	"requestId":"11BAFBD8-8509-4177-A26D-407505E73713",
    	"successResponse":false
    }

Error codes

View error codes.