...
Hillary R1 was the first iQSonar version which supported this functionality via the RestAPI. The exposed method was called using a GET request. (GET is the normal http request type.) Note: the encoded username and password pair in the CURL call corresponds to the login 'admin' and password 'password' which are the default iQSonar credentials you are forced to change on when you log in the first time.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
curl -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' 'http://youriqsonarserver/api/v1/deletetargets' |
...
The response will return an ID code that can be used in subsequent calls to see if the request has completed. A large estate may take some time to clear down.
Sample results: using the example above for an iQSonar instance installed on the host 'vm-mike-rc', we get the following:
It can take some time to clear down a complex estate. The RestAPI endpoint 'targets/deletestatus/<statusid>' will let us know when the task is complete. The screenshot below uses the request_id from the previous request to check if the target deletion has completed:
Now, if we go to the UI, we will see that all the target locations are empty of targets, but the credentials still exist.
Info |
---|
Related articles
...
Page Properties | ||
---|---|---|
| ||
|