You can call this operation to view the details of a job.

Request parameters

Name Type Required Example Description
Id String Yes FJ-BCCAE48B90CCB37B The ID of the job.
ProjectId String Yes FP-257A173659F59685 The ID of the project.
RegionId String Yes cn-hangzhou The ID of the region.

Response parameters

Name Type Example Description
RequestId String 1549175a-6d14-4c8a-89f9-5e28300f6d7e The ID of the request.
Id String FJ-BCCAE48B90CCB37B The ID of the job.
GmtCreate Long 1538017814000 The creation time.
GmtModified Long 1538017814000 The modification time.
Name String Name The name of the job.
Type String SHELL The type of the job. Valid values: MR, SPARK, HIVE_SQL, HIVE, PIG, SQOOP, SPARK_SQL, SPARK_STREAMING, and SHELL.
Description String "This is a job description." The description of the job.
FailAct String CONTINUE The action to take after failure. Valid values: STOP and CONTINUE.
MaxRetry Integer 5 The maximum number of retries. Valid values: 0 to 5.
RetryInterval Long 200 The interval between retries. Valid values: 0 to 300. Unit: seconds.
Params String ls -l The content of the job.
ParamConf String {"date":"${yyyy-MM-dd}"} The configurations of the parameters.
EnvConf String {"key":"value"} The configurations of the environment variables.
RunConf String {"priority":1,"userName":"hadoop","memory":2048,"cores":1} The run configurations. priority: The priority to run the instance. userName: The Linux user that submits the instance. memory: The size of the allocated memory for running the instance. Unit: megabytes. cores: The number of allocated vCPUs for running the instance.
MonitorConf String {"inputs":[{"type":"KAFKA","clusterId":"C-1234567","topics":"kafka_topic","consumer.group":"kafka_consumer_group"}],"outputs":[{"type":"KAFKA","clusterId":"C-1234567","topics":"kafka_topic"}]} The monitoring configurations. Only jobs of the SPARK_STREAMING type are supported.
CategoryId String FC-5BD9575E34623940 The category ID of the job.
mode String YARN The mode of the model. Valid values: YARN and LOCAL.
LastInstanceId String FJI-ACCAE48B90CCB37B The ID of the last instance that is run.
Adhoc String true Indicates whether the instance is an ad-hoc query.
ResourceList The list of the resources.
Path String oss://path/demo.jar The path of the resource.
Alias String demo.jar The alias of the resource.

Examples

  • Sample requests
    
    /? Id=FJ-BCCAE48B90CCB37B
    &ProjectId=FP-257A173659F59685
    &RegionId=cn-hangzhou
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"CategoryId":"FC-F2495319DA05CEE5",
    	"Description":"shell",
    	"FailAct":"STOP",
    	"GmtCreate":1538017814000,
    	"GmtModified":1538017814000,
    	"Id":"FJ-C7FB9F1075C7D62A",
    	"MaxRetry":0,
    	"Name":"shell_copy",
    	"Params":"ls -l",
    	"RequestId":"7D2B1B2E-8D89-49C1-8D31-097C83879D20",
    	"ResourceList":{
    		"Resource":[]
    	},
    	"RetryInterval":15,
    	"Type":"SHELL"
    }
  • Error response examples
    JSON format
    
    {
    	"code":"FLOW_API_FAILED",
    	"message":"Flow Job does not exist [FJ-A10DB75C7D62A]",
    	"requestId":"243D5A48-96A5-4C0C-8966-93CBF65635ED",
    	"successResponse":false
    }

Error codes

View error codes.