GET /api/hostgroups/:hostgroup_id/puppetclass_ids
Listar todos los ID de clases Puppet del grupo de hosts

Ejemplos

GET /api/hostgroups/636252244/puppetclass_ids
200
{
  "results": [
    980190962
  ]
}

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/hostgroups/:hostgroup_id/puppetclass_ids
Añadir una clase Puppet al grupo de hosts

Ejemplos

POST /api/hostgroups/636252244/puppetclass_ids
{
  "puppetclass_id": 281110143,
  "hostgroup_class": {
    "puppetclass_id": 281110143
  }
}
200
{
  "hostgroup_id": 636252244,
  "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

hostgroup_id
requerido

ID del grupo de hosts

Validations:

  • Must be a String

puppetclass_id
requerido

ID de la clase Puppet

Validations:

  • Must be a String


DELETE /api/hostgroups/:hostgroup_id/puppetclass_ids/:id
Eliminar clase Puppet de grupo de hosts

Ejemplos

DELETE /api/hostgroups/636252244/puppetclass_ids/980190962
{
  "hostgroup_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

hostgroup_id
requerido

ID del grupo de hosts

Validations:

  • Must be a String

id
requerido

ID de la clase Puppet

Validations:

  • Must be a String