Updated on 2023-12-14 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 description
    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

None

Response

Table 2 Parameters

Parameter

Type

Description

type

String

Template type

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

For details, see Error Codes.