Action execution status
URI - GET
To use this endpoint, send a GET request to get the state of action in the queue. /task/{taskId}
Request
The request includes HTTP headers (obtained in the authentication/authorization process and used to sign the request) with request string parameters.
Request Headers
Header |
Type |
Required |
Format |
Description/Sample |
---|---|---|---|---|
x-av-req-id |
String |
Yes |
UUID – Generated and supplied on the request. |
d290f1ee-6c54-4b01-90e6-d701748f085 1 |
Authorization |
Bearer Token |
Yes |
Bearer <API Access Token> |
A string Bearer followed by the API Access Token. See Generating API Access Token. For example, assuming that the API Access Token is 1234, the Bearer Token will be Bearer 1234 |
Request String Parameters
Header |
Type |
Required |
Format |
Description/Sample |
---|---|---|---|---|
taskId |
String |
Yes |
|
Harmony Email & Collaboration Task ID, such as: “4b8312c5b04d4a6d884662237fa2e25d” |
Request Body
Not applicable for GET method.
Request sample (CURL) format
This request sample shows URI base in USA region. For URI base in other regions, see URLs and URL Base.
curl -X GET -H "Accept: application/json" \
-H "x-av-req-id: d290f1ee-6c54-4b01-90e6-d701748f0851" \
-H "Authorization: Bearer 2462b23346ab0642b65d7d094aca5fb4c29fd96d0468deceae2704d258e81497" \
https://cloudinfra-gw-us.portal.checkpoint.com/app/hec-api/v1.0/task/4b8312c5b04d4a6d884662237fa2e25d
Response
The response obtained from the service includes an HTTP response code and JSON formatted structure.
Response Structure
A valid response obtained from the service (JSON format):
{
"actions":
[
{
"action_created": "string",
"action_id": "string",
"action_name": "string",
"action_status": "string",
"action_type": "string",
"action_updated": "string",
"hash_key": "string"
}
],
"created": "string",
"customer": "string",
"id": "numeric",
"name": "string",
"owner": "string",
"progress": "numeric",
"sequential": "boolean",
"status": "string",
"total": "numeric",
"type": "string",
"updated": "string"
}
Response Parameters
The response parameters:
Parameter |
Type |
Description |
|
---|---|---|---|
responseEnvelope |
Object |
A container of metadata properties |
|
|
requestId |
String |
Request ID (from the request header x-av-req-id value) |
|
responseCode |
Integer |
0 = Success Other values = Failure |
|
responseTest |
String |
The text value of the response |
|
additionalText |
String |
Additional information |
|
recordsNumber |
Integer |
Number of records in the response |
|
totalRecordsNumber |
Integer |
Total number of records |
|
scrollId |
String |
Unique ID used for scrolling |
responseData |
Object |
Array of event entities |
|
|
actions |
Array of Object |
Array of action data |
|
created |
String |
Date when the task was created |
|
customer |
String |
Customer name |
|
id |
String |
Unique ID of the task |
|
name |
String |
Name of the task |
|
owner |
String |
Owner’s email |
|
progress |
Integer |
Progress indicator |
|
sequential |
Boolean |
Sequential flag |
|
status |
String |
init, inprogress, completed, failed, stopped, paused |
|
total |
Integer |
Total number |
|
type |
String |
Action type |
|
updated |
String |
Date when action was updated |
Response Sample
A valid response from the service:
{
"responseEnvelope":
{
"requestId": "d290f1ee-6c54-4b01-90e6-d701748f3351",
"responseCode": 0,
"responseText": "success",
"additionalText": "",
"recordsNumber": 1,
"scrollId": "9898989898"
},
"responseData":
{
"actions":
[
{
"action_created": "2021-08-04 11:45:38.823008",
"action_id": "1628077538822988",
"action_name": "Quarantine 14cc6d3aec558cca4de1363166fa42f9",
"action_status": "init",
"action_type": "Quarantine_14cc6d3aec558cca4de1363166fa42f9",
"action_updated": "2021-08-04 11:45:38.823015",
"hash_key": "us##customername##1628077538799978"
}
],
"created": "2021-08-04 11:45:38.799984",
"customer": "customername",
"id": 1628077538799978,
"name": "Office365 Emails Manual Action",
"owner": "service@checkpoint.com",
"progress": 0,
"sequential": true,
"status": "inprogress",
"total": 1,
"type": "office365_emails_manual_action",
"updated": "2021-08-04 11:45:38.800076"
}
}