GET /api/hostgroups/:hostgroup_id/puppetclass_ids
Listar todas os Ids de classes Puppet para grupo de host

Exemplos

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

Parâmentros

Nome parâmetro Descrição
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
Adicionar uma classe Puppet para o grupo

Exemplos

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

Parâmentros

Nome parâmetro Descrição
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 do grupo de host

Validations:

  • Must be a String

puppetclass_id
requerido

ID da classe puppet

Validations:

  • Must be a String


DELETE /api/hostgroups/:hostgroup_id/puppetclass_ids/:id
Remover uma classe Puppet de um grupo de host

Exemplos

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

]

Parâmentros

Nome parâmetro Descrição
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 do grupo de host

Validations:

  • Must be a String

id
requerido

ID da classe puppet

Validations:

  • Must be a String