Updated on 2025-09-15 GMT+08:00

Obtaining a Job Template

Function

This API is used to obtain a job template.

URI

  • URI format

    GET /v3/{project_id}/templates/{template_id}

  • 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

Table 2 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.