Hosts
List hosts with filter
Retrieve a list of all hosts with given filter.
To use this endpoint, you must have one of the following roles: comply-admin comply-operator comply-viewer
post/v1/hosts/filter
Request
- Base URLhttps://help.puppet.com/api/public
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
offsetinteger
The offset where list should start response at.
limitinteger
The offset where list should start response at.
Request body
Example request
{
"environments": [
"production"
],
"hostnames": [
"hostname.example"
],
"node_groups": [
"node group"
],
"operating_systems": [
"redhat 7",
"redhat 8"
]
}Response
HostsFilteredListResponse is the response for a list hosts request with filter.
Example response
{
"data": [
{
"assessor_version": "4.3.1",
"environment": "Test_Environment",
"id": 123,
"name": "example.node.net",
"operating_system": {
"compatible_benchmarks": [
{
"id": 123,
"name": "3.1.2 CIS CentOS Linux 7"
}
],
"id": 123,
"name": "CentOS 7"
}
}
],
"limit": 10,
"next": "/api/public/v_/_api_?offset=10&limit=10",
"total": 123
}Changes
No recorded changes to this operation across all 1 revision of this API.