Examples

POST /api/config_templates/1007981701-centos5_3_pxelinux/clone
{
  "config_template": {
    "name": "MyClone"
  }
}
201
{
  "id": 1007981703,
  "name": "MyClone",
  "template": "default linux~label linux~kernel <%= @kernel %>~append initrd=<%= @initrd %> ks=<%= foreman_url(\"kickstart\")%> ksdevice=bootif network kssendmac",
  "snippet": false,
  "template_kind_id": 452984334,
  "created_at": "2019-09-11T14:32:20.011Z",
  "updated_at": "2019-09-11T14:32:20.011Z",
  "locked": false,
  "default": false,
  "vendor": null,
  "os_family": null
}

Params

Param Name Description
location_id
Optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
Optional

Scope by organizations

Validations:

  • Must be a Integer

id
Required

Validations:

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

config_template
Required

Validations:

  • Must be a Hash

config_template[name]
Required

mallnamn

Validations:

  • Must be a String