GET /api/hosts/host1917/puppetclasses
200
{
"total": 1,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": {
"class352": [
{
"id": 1018350799,
"name": "class352",
"created_at": "2018-07-24T13:11:15.703Z",
"updated_at": "2018-07-24T13:11:15.703Z"
}
]
}
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
host_id optional |
ID of host Validations:
|
|
hostgroup_id optional |
ID of host group Validations:
|
|
environment_id optional |
ID of environment Validations:
|
|
search optional |
filter results Validations:
|
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
|
page optional |
paginate results Validations:
|
|
per_page optional |
number of entries per request Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| config_group | string | |
| environment | string | |
| host | string | |
| hostgroup | string | |
| key | string | |
| name | string |