Obtaining a Job Template
Function
This API is used to obtain a job template.
URI
- URI format
- Parameter descriptions
Table 1 URI parameters Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.
template_id
Yes
String
Template ID.
Request Parameters
None
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
type |
String |
Template type. Options: SPARK: Spark template Currently, only Spark templates are supported. |
|
id |
String |
Template ID |
|
name |
String |
Template name |
|
body |
Object |
Template content For details, see Table 5. |
|
group |
String |
Template group |
|
description |
String |
Description of the template |
|
language |
String |
Language |
|
owner |
String |
Creator of the template |
Example Request
None
Example Response
{
"name": "test2",
"body": {
"auto_recovery": false,
"max_retry_times": 20,
},
"group": "",
"description": "",
"type": "SPARK",
"id": "3c92c202-b17c-4ed7-b353-ea08629dd671"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.