Get a job definition

get/definitions/{definitionId}
Internal-Use Only

Returns the job definition that is specified by the provided job definition ID.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2021-11-12T14:59:22.788Z",
3 "modifiedTimeStamp": "2021-11-12T14:59:22.792Z",
4 "createdBy": "user1",
5 "modifiedBy": "user1",
6 "version": 2,
7 "id": "4748cee3-0eb2-4815-ab04-cd2bbd878cb4",
8 "name": "Simple proc print",
9 "description": "Show the contents of sashelp.class using PROC PRINT",
10 "type": "Compute",
11 "parameters": [
12 {
13 "version": 1,
14 "name": "_contextName",
15 "defaultValue": "SAS Job Execution compute context",
16 "type": "CHARACTER",
17 "label": "Context Name",
18 "required": false
19 }
20 ],
21 "code": "ods html style=HTMLBlue;\nproc print data=sashelp.class; run; quit;\nods html close;",
22 "links": [
23 {
24 "method": "GET",
25 "rel": "self",
26 "href": "/jobDefinitions/definitions/4748cee3-0eb2-4815-ab04-cd2bbd878cb4",
27 "uri": "/jobDefinitions/definitions/4748cee3-0eb2-4815-ab04-cd2bbd878cb4",
28 "type": "application/vnd.sas.job.definition"
29 },
30 {
31 "method": "GET",
32 "rel": "alternate",
33 "href": "/jobDefinitions/definitions/4748cee3-0eb2-4815-ab04-cd2bbd878cb4",
34 "uri": "/jobDefinitions/definitions/4748cee3-0eb2-4815-ab04-cd2bbd878cb4",
35 "type": "application/vnd.sas.summary"
36 },
37 {
38 "method": "PUT",
39 "rel": "update",
40 "href": "/jobDefinitions/definitions/4748cee3-0eb2-4815-ab04-cd2bbd878cb4",
41 "uri": "/jobDefinitions/definitions/4748cee3-0eb2-4815-ab04-cd2bbd878cb4",
42 "type": "application/vnd.sas.job.definition",
43 "responseType": "application/vnd.sas.job.definition"
44 },
45 {
46 "method": "DELETE",
47 "rel": "delete",
48 "href": "/jobDefinitions/definitions/4748cee3-0eb2-4815-ab04-cd2bbd878cb4",
49 "uri": "/jobDefinitions/definitions/4748cee3-0eb2-4815-ab04-cd2bbd878cb4"
50 }
51 ],
52 "properties": []
53}

Path Parameters

NameTypeRequiredDescription
definitionId
string
true

The ID of the job definition.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
404Not FoundNo resource exists at the requested path.