Getting status on a REST call for multiple registered hosts
You can get status or details about a call to upload or delete files on multiple registered hosts of a collective by invoking the GET REST API.
Before you begin
Call a REST API to upload or delete files on multiple registered hosts. See Uploading files to multiple registered hosts with a single REST call or Deleting files from multiple registered hosts with a single REST call.
Procedure
Example
Get overall multiple task status, with the option of filtering the results. If the JSON response is:
[
{
"taskID" : String ,
"taskStatus" : String,
"taskURL" : URL
}*
]
For the following GET call:
GET https://myTarget.com:9443/IBMJMXConnectorREST/file/status
Typical status
is:
[
{
"taskID" : "c8a2b96b-5a6a-493c-ad0c-140df87d61cf" ,
"taskStatus" : "succeeded",
"taskURL" : "/IBMJMXConnectorREST/file/status/c8a2b96b-5a6a-493c-ad0c-140df87d61cf"
},
{
"taskID" : "18c807ff-e7bb-4584-a988-278039d0aabd" ,
"taskStatus" : "failed",
"taskURL" : "/IBMJMXConnectorREST/file/status/18c807ff-e7bb-4584-a988-278039d0aabd"
}
]
For the following GET call with two
key=value
pairs:
GET https://myTarget.com:9443/IBMJMXConnectorREST/file/status?user=bob&status=succeeded
Typical status
is:
[
{
"taskID" : "c8a2b96b-5a6a-493c-ad0c-140df87d61cf" ,
"taskStatus" : "succeeded",
"taskURL" : "/IBMJMXConnectorREST/file/status/c8a2b96b-5a6a-493c-ad0c-140df87d61cf"
}
]