REST API Method: GET /rest/hosts
Returns the schema elements and values of a host entry.
URL:
https://134.56.227.163/rest/hosts
HTTP Method
GET
Requires Authentication:
true
Parameters
Name | Required | Values | Description |
---|
filter | No | config | The type of filtered information in the response. If no filters are specified, all get applied. |
---|
Code Block |
---|
|
curl --cookie PHPSESSID=ima0r3nkaeg8mo0suln67vg4m7 --cacert 134.56.227.163.crt
-i https://134.56.227.163/rest/hosts |
Response:
Code Block |
---|
|
<?xml version="1.0"?>
<root>
<status>
<http_code>200</http_code>
</status>
<hosts_list count="3">
<hosts_pk id="1" href="https://134.56.227.163/rest/hosts/1"/>
<hosts_pk id="2" href="https://134.56.227.163/rest/hosts/2"/>
<hosts_pk id="3" href="https://134.56.227.163/rest/hosts/3"/>
</hosts_list>
</root> |