GET /api/hosts/host1604/puppetclass_ids
200
{
"results": [
1018350796
]
}
| 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:
|
POST /api/hosts/host1605/puppetclass_ids
{
"puppetclass_id": 281110143,
"host_class": {
"puppetclass_id": 281110143
}
}
200
{
"host_id": 2,
"puppetclass_id": 281110143
}
| 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 required |
ID of host Validations:
|
|
puppetclass_id required |
ID of Puppet class Validations:
|
POST /api/hosts/host1606/puppetclass_ids/invalid_id
{
"host_class": {}
}
422
{
"error": {
"message": "Couldn't find Puppetclass with 'id'=invalid_id"
}
}
| 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 required |
ID of host Validations:
|
|
id required |
ID of Puppet class Validations:
|