Przykłady

PUT /api/config_groups/980190962-Monitoring
{
  "config_group": {
    "name": "new name",
    "puppetclass_ids": [
      980190962,
      281110143
    ]
  }
}
200
{
  "created_at": "2019-11-07 09:06:52 UTC",
  "updated_at": "2019-11-07 09:07:21 UTC",
  "id": 980190962,
  "name": "new name",
  "puppetclasses": [
    {
      "id": 980190962,
      "name": "base",
      "module_name": "base"
    },
    {
      "id": 281110143,
      "name": "vim",
      "module_name": "vim"
    }
  ]
}

Parametry

Nazwa parametru Opis
location_id
opcjonalny

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcjonalny

Set the current organization context for the request

Validations:

  • Must be a Integer

id
wymagany

Validations:

  • Must be a String

config_group
wymagany

Validations:

  • Must be a Hash

config_group[name]
opcjonalny

Validations:

  • Must be a String

config_group[puppetclass_ids]
opcjonalny , nil dopuszczalny

Validations:

  • Must be an array of any type