Returns a paginated list of Job Templates. filter accepts a single filter term with a list of values separated by comma. eg: parentTemplateKey:ra151dddc007f947ce,ra151dddc007f947cb sort accepts a list of entries to sort on in order eg: jobName:asc,templateKey:desc asc - Ascending, desc - Descending Supported sort keys: key, templateKey, jobName, jobDescription, createdBy, assetType
name | type | description | constraints |
---|---|---|---|
filter | query | ||
pageIndex | query | long | |
pageSize | query | long | |
sort | query |
media type | data type | description |
---|---|---|
application/json | PaginatedResponseOfJobDetailsTO (JSON) |
GET /v2/job/templates
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"totalCount" : 12345,
"list" : [ {
"templateKey" : "...",
"status" : "...",
"successCount" : "...",
"elapsedTime" : 12345,
"rootDataSourceType" : "...",
"cliArguments" : "...",
"sparkJob" : {
"message" : "...",
"type" : "...",
"state" : "..."
},
"principal" : "...",
"incompleteCount" : "...",
"key" : "...",
"sequence" : {
"name" : "...",
"key" : "..."
},
"jobSubmissionTime" : 12345,
"asset" : {
"assetPaths" : [ "...", "..." ],
"assetNames" : [ "...", "..." ],
"assetType" : "...",
"assetKeyList" : [ "...", "..." ]
},
"statusMsg" : "...",
"templateName" : "...",
"submittedBy" : "...",
"supportedDataSources" : [ "...", "..." ],
"skippedCount" : "...",
"agent" : {
"ipAddress" : "...",
"metaConnected" : true,
"connected" : true,
"description" : "...",
"lastSeen" : 12345,
"token" : "...",
"registered" : true,
"name" : "...",
"timeOfLastChange" : 12345,
"timeOfCreation" : 12345,
"key" : "...",
"type" : "...",
"restricted" : [ "...", "..." ],
"viewAble" : [ "...", "..." ],
"updateable" : [ "...", "..." ],
"richDescription" : "...",
"score" : 12345.0,
"customProperties" : [ { }, { } ]
},
"jobDescription" : "...",
"jobName" : "...",
"createdBy" : "..."
}, {
"templateKey" : "...",
"status" : "...",
"successCount" : "...",
"elapsedTime" : 12345,
"rootDataSourceType" : "...",
"cliArguments" : "...",
"sparkJob" : {
"message" : "...",
"type" : "...",
"state" : "..."
},
"principal" : "...",
"incompleteCount" : "...",
"key" : "...",
"sequence" : {
"name" : "...",
"key" : "..."
},
"jobSubmissionTime" : 12345,
"asset" : {
"assetPaths" : [ "...", "..." ],
"assetNames" : [ "...", "..." ],
"assetType" : "...",
"assetKeyList" : [ "...", "..." ]
},
"statusMsg" : "...",
"templateName" : "...",
"submittedBy" : "...",
"supportedDataSources" : [ "...", "..." ],
"skippedCount" : "...",
"agent" : {
"ipAddress" : "...",
"metaConnected" : true,
"connected" : true,
"description" : "...",
"lastSeen" : 12345,
"token" : "...",
"registered" : true,
"name" : "...",
"timeOfLastChange" : 12345,
"timeOfCreation" : 12345,
"key" : "...",
"type" : "...",
"restricted" : [ "...", "..." ],
"viewAble" : [ "...", "..." ],
"updateable" : [ "...", "..." ],
"richDescription" : "...",
"score" : 12345.0,
"customProperties" : [ { }, { } ]
},
"jobDescription" : "...",
"jobName" : "...",
"createdBy" : "..."
} ]
}
Creates a job template. Flow for creation of Job Templates: Fetch the key of VirtualFolder (/virtualfolder/name/{VirtualFolder_Name}) Fetch an appropriate Sequence key (/job/sequences) Feed the sequence key and virtual folder key in the Job template json along with other template details. Post the payload.
media type | data type |
---|---|
application/json | JobDetailsTO (JSON) |
media type | data type | description |
---|---|---|
application/json | JobDetailsTO (JSON) |
POST /v2/job/templates
Content-Type: application/json
Accept: application/json
{
"templateKey" : "...",
"status" : "...",
"successCount" : "...",
"elapsedTime" : 12345,
"rootDataSourceType" : "...",
"cliArguments" : "...",
"sparkJob" : {
"message" : "...",
"type" : "...",
"state" : "..."
},
"principal" : "...",
"incompleteCount" : "...",
"key" : "...",
"sequence" : {
"name" : "...",
"key" : "..."
},
"jobSubmissionTime" : 12345,
"asset" : {
"assetPaths" : [ "...", "..." ],
"assetNames" : [ "...", "..." ],
"assetType" : "...",
"assetKeyList" : [ "...", "..." ]
},
"statusMsg" : "...",
"templateName" : "...",
"submittedBy" : "...",
"supportedDataSources" : [ "...", "..." ],
"skippedCount" : "...",
"agent" : {
"ipAddress" : "...",
"metaConnected" : true,
"connected" : true,
"description" : "...",
"lastSeen" : 12345,
"token" : "...",
"registered" : true,
"name" : "...",
"timeOfLastChange" : 12345,
"timeOfCreation" : 12345,
"key" : "...",
"type" : "...",
"restricted" : [ "...", "..." ],
"viewAble" : [ "...", "..." ],
"updateable" : [ "...", "..." ],
"richDescription" : "...",
"score" : 12345.0,
"customProperties" : [ {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
}, {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
} ]
},
"jobDescription" : "...",
"jobName" : "...",
"createdBy" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"templateKey" : "...",
"status" : "...",
"successCount" : "...",
"elapsedTime" : 12345,
"rootDataSourceType" : "...",
"cliArguments" : "...",
"sparkJob" : {
"message" : "...",
"type" : "...",
"state" : "..."
},
"principal" : "...",
"incompleteCount" : "...",
"key" : "...",
"sequence" : {
"name" : "...",
"key" : "..."
},
"jobSubmissionTime" : 12345,
"asset" : {
"assetPaths" : [ "...", "..." ],
"assetNames" : [ "...", "..." ],
"assetType" : "...",
"assetKeyList" : [ "...", "..." ]
},
"statusMsg" : "...",
"templateName" : "...",
"submittedBy" : "...",
"supportedDataSources" : [ "...", "..." ],
"skippedCount" : "...",
"agent" : {
"ipAddress" : "...",
"metaConnected" : true,
"connected" : true,
"description" : "...",
"lastSeen" : 12345,
"token" : "...",
"registered" : true,
"name" : "...",
"timeOfLastChange" : 12345,
"timeOfCreation" : 12345,
"key" : "...",
"type" : "...",
"restricted" : [ "...", "..." ],
"viewAble" : [ "...", "..." ],
"updateable" : [ "...", "..." ],
"richDescription" : "...",
"score" : 12345.0,
"customProperties" : [ {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
}, {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
} ]
},
"jobDescription" : "...",
"jobName" : "...",
"createdBy" : "..."
}
Delete a set of Job templates
media type | data type |
---|---|
application/json | object (JSON) |
POST /v2/job/templates/bulkdelete
Content-Type: application/json
...
HTTP/1.1 201 Created
API to delete an existing Job template
name | type | description |
---|---|---|
key | path |
DELETE /v2/job/templates/{key}
Content-Type: application/json
...
HTTP/1.1 204 No Content
Returns a single Job template for the provided key
name | type | description |
---|---|---|
key | path |
media type | data type | description |
---|---|---|
application/json | JobDetailsTO (JSON) |
GET /v2/job/templates/{key}
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"templateKey" : "...",
"status" : "...",
"successCount" : "...",
"elapsedTime" : 12345,
"rootDataSourceType" : "...",
"cliArguments" : "...",
"sparkJob" : {
"message" : "...",
"type" : "...",
"state" : "..."
},
"principal" : "...",
"incompleteCount" : "...",
"key" : "...",
"sequence" : {
"name" : "...",
"key" : "..."
},
"jobSubmissionTime" : 12345,
"asset" : {
"assetPaths" : [ "...", "..." ],
"assetNames" : [ "...", "..." ],
"assetType" : "...",
"assetKeyList" : [ "...", "..." ]
},
"statusMsg" : "...",
"templateName" : "...",
"submittedBy" : "...",
"supportedDataSources" : [ "...", "..." ],
"skippedCount" : "...",
"agent" : {
"ipAddress" : "...",
"metaConnected" : true,
"connected" : true,
"description" : "...",
"lastSeen" : 12345,
"token" : "...",
"registered" : true,
"name" : "...",
"timeOfLastChange" : 12345,
"timeOfCreation" : 12345,
"key" : "...",
"type" : "...",
"restricted" : [ "...", "..." ],
"viewAble" : [ "...", "..." ],
"updateable" : [ "...", "..." ],
"richDescription" : "...",
"score" : 12345.0,
"customProperties" : [ {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
}, {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
} ]
},
"jobDescription" : "...",
"jobName" : "...",
"createdBy" : "..."
}
API to update an existing Job Template. Only a restricted set of fields can be updated through the API Fields supported: name, description, assetList, assetPaths
name | type | description |
---|---|---|
key | path |
media type | data type |
---|---|
application/json | JobDetailsTO (JSON) |
media type | data type | description |
---|---|---|
application/json | JobDetailsTO (JSON) |
PUT /v2/job/templates/{key}
Content-Type: application/json
Accept: application/json
{
"templateKey" : "...",
"status" : "...",
"successCount" : "...",
"elapsedTime" : 12345,
"rootDataSourceType" : "...",
"cliArguments" : "...",
"sparkJob" : {
"message" : "...",
"type" : "...",
"state" : "..."
},
"principal" : "...",
"incompleteCount" : "...",
"key" : "...",
"sequence" : {
"name" : "...",
"key" : "..."
},
"jobSubmissionTime" : 12345,
"asset" : {
"assetPaths" : [ "...", "..." ],
"assetNames" : [ "...", "..." ],
"assetType" : "...",
"assetKeyList" : [ "...", "..." ]
},
"statusMsg" : "...",
"templateName" : "...",
"submittedBy" : "...",
"supportedDataSources" : [ "...", "..." ],
"skippedCount" : "...",
"agent" : {
"ipAddress" : "...",
"metaConnected" : true,
"connected" : true,
"description" : "...",
"lastSeen" : 12345,
"token" : "...",
"registered" : true,
"name" : "...",
"timeOfLastChange" : 12345,
"timeOfCreation" : 12345,
"key" : "...",
"type" : "...",
"restricted" : [ "...", "..." ],
"viewAble" : [ "...", "..." ],
"updateable" : [ "...", "..." ],
"richDescription" : "...",
"score" : 12345.0,
"customProperties" : [ {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
}, {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
} ]
},
"jobDescription" : "...",
"jobName" : "...",
"createdBy" : "..."
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"templateKey" : "...",
"status" : "...",
"successCount" : "...",
"elapsedTime" : 12345,
"rootDataSourceType" : "...",
"cliArguments" : "...",
"sparkJob" : {
"message" : "...",
"type" : "...",
"state" : "..."
},
"principal" : "...",
"incompleteCount" : "...",
"key" : "...",
"sequence" : {
"name" : "...",
"key" : "..."
},
"jobSubmissionTime" : 12345,
"asset" : {
"assetPaths" : [ "...", "..." ],
"assetNames" : [ "...", "..." ],
"assetType" : "...",
"assetKeyList" : [ "...", "..." ]
},
"statusMsg" : "...",
"templateName" : "...",
"submittedBy" : "...",
"supportedDataSources" : [ "...", "..." ],
"skippedCount" : "...",
"agent" : {
"ipAddress" : "...",
"metaConnected" : true,
"connected" : true,
"description" : "...",
"lastSeen" : 12345,
"token" : "...",
"registered" : true,
"name" : "...",
"timeOfLastChange" : 12345,
"timeOfCreation" : 12345,
"key" : "...",
"type" : "...",
"restricted" : [ "...", "..." ],
"viewAble" : [ "...", "..." ],
"updateable" : [ "...", "..." ],
"richDescription" : "...",
"score" : 12345.0,
"customProperties" : [ {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
}, {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
} ]
},
"jobDescription" : "...",
"jobName" : "...",
"createdBy" : "..."
}
Returns a list of Job instances for the provided Job template key
name | type | description |
---|---|---|
key | path |
media type | data type | description |
---|---|---|
application/json | array of JobDetailsTO (JSON) |
GET /v2/job/templates/{key}/instances
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"templateKey" : "...",
"status" : "...",
"successCount" : "...",
"elapsedTime" : 12345,
"rootDataSourceType" : "...",
"cliArguments" : "...",
"sparkJob" : {
"message" : "...",
"type" : "...",
"state" : "..."
},
"principal" : "...",
"incompleteCount" : "...",
"key" : "...",
"sequence" : {
"name" : "...",
"key" : "..."
},
"jobSubmissionTime" : 12345,
"asset" : {
"assetPaths" : [ "...", "..." ],
"assetNames" : [ "...", "..." ],
"assetType" : "...",
"assetKeyList" : [ "...", "..." ]
},
"statusMsg" : "...",
"templateName" : "...",
"submittedBy" : "...",
"supportedDataSources" : [ "...", "..." ],
"skippedCount" : "...",
"agent" : {
"ipAddress" : "...",
"metaConnected" : true,
"connected" : true,
"description" : "...",
"lastSeen" : 12345,
"token" : "...",
"registered" : true,
"name" : "...",
"timeOfLastChange" : 12345,
"timeOfCreation" : 12345,
"key" : "...",
"type" : "...",
"restricted" : [ "...", "..." ],
"viewAble" : [ "...", "..." ],
"updateable" : [ "...", "..." ],
"richDescription" : "...",
"score" : 12345.0,
"customProperties" : [ {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
}, {
"description" : "...",
"value" : { },
"facetAble" : true,
"name" : "...",
"type" : "...",
"displayName" : "..."
} ]
},
"jobDescription" : "...",
"jobName" : "...",
"createdBy" : "..."
} ]