Examples

PUT /api/puppetclasses/980190962-base
{
  "puppetclass": {
    "name": "test_puppetclass"
  }
}
200
{
  "created_at": "2018-07-24 13:11:08 UTC",
  "updated_at": "2018-07-24 13:11:15 UTC",
  "id": 980190962,
  "name": "test_puppetclass",
  "module_name": "test_puppetclass",
  "environments": [
    {
      "name": "production",
      "id": 334344675
    }
  ],
  "hostgroups": [
    {
      "id": 636252244,
      "name": "Common",
      "title": "Common",
      "description": null
    }
  ],
  "smart_variables": [
    {
      "variable": "bool_test",
      "id": 638205575
    },
    {
      "variable": "ssl_port",
      "id": 298486374
    }
  ],
  "smart_class_parameters": [
    {
      "parameter": "cluster",
      "id": 328495940
    }
  ]
}

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 a String

puppetclass
required

Validations:

  • Must be a Hash

puppetclass[name]
optional

Validations:

  • Must be a String