Obtaining a Job Template
Function
This API is used to obtain a job template.
Authorization
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see the required permissions in Introduction.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependency
dli:template:get
read
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot