Examples

POST /api/hostgroups/636252244/clone
{
  "name": "GaeUjaFeKw",
  "hostgroup": {
    "name": "GaeUjaFeKw"
  }
}
201
{
  "id": 928644294,
  "name": "GaeUjaFeKw",
  "created_at": "2021-09-01T13:14:45.323Z",
  "updated_at": "2021-09-01T13:14:45.323Z",
  "environment_id": null,
  "operatingsystem_id": 309172073,
  "architecture_id": 501905019,
  "medium_id": 980190962,
  "ptable_id": null,
  "root_pass": "$1$foreman$NW1XVtbk4/XkJqmKNrFWV0",
  "puppet_ca_proxy_id": 182953976,
  "use_image": null,
  "image_file": "",
  "ancestry": null,
  "vm_defaults": null,
  "subnet_id": null,
  "domain_id": 22495316,
  "puppet_proxy_id": 182953976,
  "title": "GaeUjaFeKw",
  "realm_id": null,
  "compute_profile_id": 980190962,
  "grub_pass": "$1$foreman$NW1XVtbk4/XkJqmKNrFWV0",
  "lookup_value_matcher": "hostgroup=GaeUjaFeKw",
  "subnet6_id": null,
  "pxe_loader": null,
  "description": null,
  "compute_resource_id": null
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

name
required

Validations:

  • Must be a String