GET /api/hosts/:host_id/puppetclass_ids
List all Puppet class IDs for host

Examples

GET /api/hosts/host709/puppetclass_ids
200
{
  "results": [
    1018350798
  ]
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer


POST /api/hosts/:host_id/puppetclass_ids
Lägg till Puppet-klass till värd

Examples

POST /api/hosts/host710/puppetclass_ids
{
  "puppetclass_id": 281110143,
  "host_class": {
    "puppetclass_id": 281110143
  }
}
200
{
  "host_id": 12,
  "puppetclass_id": 281110143
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

host_id
Required

ID för värd

Validations:

  • Must be a String

puppetclass_id
Required

ID of Puppet class

Validations:

  • Must be a String


DELETE /api/hosts/:host_id/puppetclass_ids/:id
Remove a Puppet class from host

Examples

DELETE /api/hosts/host712/puppetclass_ids/1018350801
{
  "host_class": {}
}
200
[

]

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

host_id
Required

ID för värd

Validations:

  • Must be a String

id
Required

ID of Puppet class

Validations:

  • Must be a String