GET /api/hosts/:host_id/puppetclass_ids
Som alle puppet class IDs voor de host op

Examples

GET /api/hosts/host2666/puppetclass_ids
200
{
  "results": [
    1018350797
  ]
}

Params

Param Name Description
location_id
Optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
Optional

Scope met organisaties

Validations:

  • Must be a Integer


POST /api/hosts/:host_id/puppetclass_ids
Een Puppet class toevoegen aan de host

Examples

POST /api/hosts/host2667/puppetclass_ids
{
  "puppetclass_id": "invalid_id",
  "host_class": {
    "puppetclass_id": "invalid_id"
  }
}
404
{
  "error": {
    "message": "Resource host_class not found by id ''"
  }
}

Params

Param Name Description
location_id
Optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
Optional

Scope met organisaties

Validations:

  • Must be a Integer

host_id
Required

ID van de host

Validations:

  • Must be a String

puppetclass_id
Required

ID van de Puppet class

Validations:

  • Must be a String


DELETE /api/hosts/:host_id/puppetclass_ids/:id
Verwijder een Puppet class van de host

Examples

DELETE /api/hosts/host2669/puppetclass_ids/1018350800
{
  "host_class": {}
}
200
[

]

Params

Param Name Description
location_id
Optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
Optional

Scope met organisaties

Validations:

  • Must be a Integer

host_id
Required

ID van de host

Validations:

  • Must be a String

id
Required

ID van de Puppet class

Validations:

  • Must be a String