GET /api/hosts/:host_id/puppetclass_ids
Listar todos los ID de clases Puppet para host

Ejemplos

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

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer


POST /api/hosts/:host_id/puppetclass_ids
Añadir una clase Puppet al host

Ejemplos

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

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

host_id
requerido

ID del host

Validations:

  • Must be a String

puppetclass_id
requerido

ID de la clase Puppet

Validations:

  • Must be a String


DELETE /api/hosts/:host_id/puppetclass_ids/:id
Eliminar clase Puppet desde host

Ejemplos

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

]

Parámetros

Nombre del parámetro Descripción
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

host_id
requerido

ID del host

Validations:

  • Must be a String

id
requerido

ID de la clase Puppet

Validations:

  • Must be a String