Retrieve the status of a TSA job identified with its job ID and chunk ID
curl --request GET \
--url https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id} \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: <api-key>");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);[
{
"duration": "50.9196",
"end_date": "2020-09-15 11:33:57.198179+00:00",
"execution_date": "2020-09-15 11:32:09+00:00",
"max_tries": "0",
"queued_dttm": "2020-09-15 11:33:01.999767+00:00",
"start_date": "2020-09-15 11:33:06.278579+00:00",
"state": "running",
"task_name": "ResultProcessor",
"task_label": "Result Processor",
"airflow_run_id": "2022-04-07T09:16:20.097860"
}
]Retrieve the status of a TSA job identified with its job ID and chunk ID
GET
/
v2
/
tsa
/
jobs
/
task_status
/
{job_id}
/
{job_chunk_id}
Retrieve the status of a TSA job identified with its job ID and chunk ID
curl --request GET \
--url https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id} \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://{host}/api/tsa/v2/tsa/jobs/task_status/{job_id}/{job_chunk_id}");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: <api-key>");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);[
{
"duration": "50.9196",
"end_date": "2020-09-15 11:33:57.198179+00:00",
"execution_date": "2020-09-15 11:32:09+00:00",
"max_tries": "0",
"queued_dttm": "2020-09-15 11:33:01.999767+00:00",
"start_date": "2020-09-15 11:33:06.278579+00:00",
"state": "running",
"task_name": "ResultProcessor",
"task_label": "Result Processor",
"airflow_run_id": "2022-04-07T09:16:20.097860"
}
]Path Parameters
Response
Success
Was this page helpful?