| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request 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 |
Page number, starting at 1 Validations:
|
|
per_page optional |
Number of results per page to return, ‘all’ to return all results Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| config_group | string | |
| environment | string | |
| host | string | |
| hostgroup | string | |
| key | string | |
| location | string | |
| name | string | |
| organization | string |
GET /api/hosts/host1325/puppetclasses/1018350802
200
{
"created_at": "2020-05-20 13:32:05 UTC",
"updated_at": "2020-05-20 13:32:05 UTC",
"id": 1018350802,
"name": "class70",
"module_name": "class70",
"environments": [
{
"name": "environment165",
"id": 687036939
}
],
"hostgroups": [],
"smart_class_parameters": []
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
host_id optional |
ID of host Validations:
|
|
hostgroup_id optional |
ID of host group Validations:
|
|
environment_id optional |
ID of environment Validations:
|
|
id required |
ID of Puppet class Validations:
|
POST /api/puppetclasses
{
"puppetclass": {
"name": "test_puppetclass"
}
}
201
{
"created_at": "2020-05-20 13:32:05 UTC",
"updated_at": "2020-05-20 13:32:05 UTC",
"id": 1018350805,
"name": "test_puppetclass",
"module_name": "test_puppetclass",
"environments": [],
"hostgroups": [],
"smart_class_parameters": []
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
puppetclass required |
Validations:
|
|
puppetclass[name] required |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
|
puppetclass required |
Validations:
|
|
puppetclass[name] optional |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|