GET /api/hostgroups/:hostgroup_id/puppetclass_ids
Afficher tous les ID des classes Puppet pour un groupe d'hôtes

Exemples

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

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer


POST /api/hostgroups/:hostgroup_id/puppetclass_ids
Ajouter une classe Puppet à un groupe d'hôtes

Exemples

POST /api/hostgroups/636252244/puppetclass_ids
{
  "puppetclass_id": 281110143,
  "hostgroup_class": {
    "puppetclass_id": 281110143
  }
}
200
{
  "hostgroup_id": 636252244,
  "puppetclass_id": 281110143
}

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

hostgroup_id
requis

ID du groupe d’hôtes

Validations:

  • Must be a String

puppetclass_id
requis

ID de la classe Puppet

Validations:

  • Must be a String


DELETE /api/hostgroups/:hostgroup_id/puppetclass_ids/:id
Supprimer une classe Puppet d'un groupe d'hôtes

Exemples

DELETE /api/hostgroups/636252244/puppetclass_ids/980190962
{
  "hostgroup_class": {}
}
200
[

]

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

hostgroup_id
requis

ID du groupe d’hôtes

Validations:

  • Must be a String

id
requis

ID de la classe Puppet

Validations:

  • Must be a String