Ejemplos

PUT /api/provisioning_templates/1007981701-centos5_3_pxelinux
{
  "provisioning_template": {
    "name": ""
  }
}
422
{
  "error": {
    "id": 1007981701,
    "errors": {
      "name": [
        "can't be blank"
      ]
    },
    "full_messages": [
      "Name can't be blank"
    ]
  }
}

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

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.

provisioning_template
requerido

Validations:

  • Must be a Hash

provisioning_template[name]
opcional

nombre de plantilla

Validations:

  • Must be a String

provisioning_template[description]
opcional , nil permitido

Validations:

  • Must be a String

provisioning_template[template]
opcional

Validations:

  • Must be a String

provisioning_template[snippet]
opcional , nil permitido

Validations:

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

provisioning_template[audit_comment]
opcional , nil permitido

Validations:

  • Must be a String

provisioning_template[template_kind_id]
opcional , nil permitido

no es relevante para ‘snippet’

Validations:

  • Must be a number.

provisioning_template[template_combinations_attributes]
opcional , nil permitido

Array de combinaciones de plantillas (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

provisioning_template[operatingsystem_ids]
opcional , nil permitido

Array de ID de sistemas operativos a asociar con la plantilla

Validations:

  • Must be an array of any type

provisioning_template[locked]
opcional , nil permitido

Si la plantilla está bloqueada o no para edición

Validations:

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

provisioning_template[location_ids]
opcional , nil permitido

REMPLAZAR ubicaciones con ID dadas

Validations:

  • Must be an array of any type

provisioning_template[organization_ids]
opcional , nil permitido

REMPLAZAR organizaciones con ID dadas.

Validations:

  • Must be an array of any type