PST SDK
5.0.1.0-acae3ae
|
Retrieves the status of a single tracking Target. Tracking targets can be either active (true) or inactive (false).
GET /PSTapi/GetTargetStatus HTTP/1.1
Query string parameter: target name
Host: address:port
http://localhost:7278/PSTapi/GetTargetStatus?MyTargetName
Returns the target status, either active (true) or inactive (false).
Key | Value Type | Description |
---|---|---|
TargetStatus | boolean | active (true) or inactive (false) |
{"TargetStatus":true}
Status Code | Content Example | Meaning |
---|---|---|
200 | Json payload | Success message |
400 | {"message":"JSON_ERROR: <...>"} | an error occured when parsing a json object |
400 | {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"} | the model provided in the querry has not been found in the database |
500 | {"message":"TrackerException: <...>"} | an other type of internal error |