PST SDK
6.0.0.0-272350a
|
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 occurred when parsing a JSON object |
400 | {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"} | The model provided in the query has not been found in the database |
500 | {"message":"TrackerException: <...>"} | An other type of internal error |