Examples

PUT /api/hosts/3/puppetrun
{
  "controller": "puppet_hosts",
  "puppet_host": {
    "controller": "puppet_hosts"
  }
}
200
{
  "id": 3,
  "name": "host751",
  "last_compile": null,
  "last_report": null,
  "updated_at": "2019-09-11T14:40:20.773Z",
  "created_at": "2019-09-11T14:40:20.773Z",
  "root_pass": "$5$b59L2Sqfz1D8K31Z$JbgBnSRY1InLMFE3QsE5GCFwFCkx85KikDvI1zxdKyD",
  "architecture_id": null,
  "operatingsystem_id": null,
  "environment_id": 687036938,
  "ptable_id": null,
  "medium_id": null,
  "build": false,
  "comment": null,
  "disk": null,
  "installed_at": null,
  "model_id": null,
  "hostgroup_id": null,
  "owner_id": 135138680,
  "owner_type": "User",
  "enabled": true,
  "puppet_ca_proxy_id": null,
  "managed": false,
  "use_image": null,
  "image_file": "",
  "uuid": null,
  "compute_resource_id": null,
  "puppet_proxy_id": 982965214,
  "certname": "host751",
  "image_id": null,
  "organization_id": 447626438,
  "location_id": 255093256,
  "otp": null,
  "realm_id": null,
  "compute_profile_id": null,
  "provision_method": "build",
  "grub_pass": "$6$f4shY8avUU45wILP$bYmbuSssHNyxxTCNr6N8.iWz.GAtNpfHtiN8envmHnrzO7pxfIPpSer2eOtk6NHn67dCk7/4z4VDejVj6ez9A/",
  "global_status": 0,
  "lookup_value_matcher": "fqdn=host751",
  "pxe_loader": null,
  "initiated_at": null,
  "build_errors": 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, dot(.), space, underscore(_), hypen(-) with no leading or trailing space.