Exemplos

PUT /api/hostgroups/636252244
{
  "hostgroup": {
    "name": ""
  }
}
422
{
  "error": {
    "id": 636252244,
    "errors": {
      "name": [
        "can't be blank"
      ]
    },
    "full_messages": [
      "Name can't be blank"
    ]
  }
}

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

id
requerido

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

hostgroup
requerido

Validations:

  • Must be a Hash

hostgroup[name]
opcional

Nome do grupo de hosts

Validations:

  • Must be a String

hostgroup[description]
opcional , nulo permitido

Descrição do grupo de hosts

Validations:

  • Must be a String

hostgroup[parent_id]
opcional , nulo permitido

ID do pai to group host

Validations:

  • Must be a number.

hostgroup[environment_id]
opcional , nulo permitido

ID do ambiente

Validations:

  • Must be a number.

hostgroup[compute_profile_id]
opcional , nulo permitido

ID do perfil computacional

Validations:

  • Must be a number.

hostgroup[compute_resource_id]
opcional , nulo permitido

ID do recurso de computação

Validations:

  • Must be a number.

hostgroup[operatingsystem_id]
opcional , nulo permitido

ID do sistema operacional

Validations:

  • Must be a number.

hostgroup[architecture_id]
opcional , nulo permitido

ID da Arquitetura

Validations:

  • Must be a number.

hostgroup[pxe_loader]
opcional , nulo permitido

opção de nome de arquivo DHCP (Grub2/PXELinux por padrão)

Validations:

  • Must be one of: None, PXELinux BIOS, PXELinux UEFI, Grub UEFI, Grub2 BIOS, Grub2 ELF, Grub2 UEFI, Grub2 UEFI SecureBoot, Grub2 UEFI HTTP, Grub2 UEFI HTTPS, Grub2 UEFI HTTPS SecureBoot, iPXE Embedded, iPXE UEFI HTTP, iPXE Chain BIOS, iPXE Chain UEFI.

hostgroup[medium_id]
opcional , nulo permitido

ID das Mídias

Validations:

  • Must be a number.

hostgroup[ptable_id]
opcional , nulo permitido

ID da Partição de tabela

Validations:

  • Must be a number.

hostgroup[subnet_id]
opcional , nulo permitido

ID da subrede

Validations:

  • Must be a number.

hostgroup[subnet6_id]
opcional , nulo permitido

Subnet IPv6 ID

Validations:

  • Must be a number.

hostgroup[domain_id]
opcional , nulo permitido

ID do Domínio

Validations:

  • Must be a number.

hostgroup[realm_id]
opcional , nulo permitido

Id de Realm

Validations:

  • Must be a number.

hostgroup[config_group_ids]
opcional , nulo permitido

ID de grupos de configuração associados

Validations:

  • Must be an array of any type

hostgroup[group_parameters_attributes]
opcional , nulo permitido

Matriz de parâmetros

Validations:

  • Must be an Array of nested elements

hostgroup[group_parameters_attributes][name]
opcional

Nome do parâmetro

Validations:

  • Must be a String

hostgroup[group_parameters_attributes][value]
opcional

Valor do parâmetro

Validations:

  • Must be a String

hostgroup[group_parameters_attributes][parameter_type]
opcional , nulo permitido

Type of value

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

hostgroup[group_parameters_attributes][hidden_value]
opcional , nulo permitido

Validations:

  • Must be one of: true, false, 1, 0.

hostgroup[puppet_proxy_id]
opcional , nulo permitido

Relatório de Marionete ID

Validations:

  • Must be a number.

hostgroup[puppet_ca_proxy_id]
opcional , nulo permitido

ID de Proxy do Puppet CA

Validations:

  • Must be a number.

hostgroup[root_pass]
opcional , nulo permitido

Senha de root em hosts provisionados

Validations:

  • Must be a String

hostgroup[location_ids]
opcional , nulo permitido

SUBSTITUIR localizações dadas com ids

Validations:

  • Must be an array of any type

hostgroup[organization_ids]
opcional , nulo permitido

SUBSTITUIR organizações dadas com ids

Validations:

  • Must be an array of any type