Exemplos

PUT /api/filters/10997177
{
  "filter": {
    "role_id": 8,
    "permission_ids": [
      740433627
    ]
  }
}
200
{
  "search": null,
  "resource_type": "Host",
  "unlimited?": true,
  "created_at": "2019-09-11 14:35:58 UTC",
  "updated_at": "2019-09-11 14:35:58 UTC",
  "override?": false,
  "id": 10997177,
  "role": {
    "name": "Destroy hosts",
    "id": 8,
    "description": null,
    "origin": ""
  },
  "permissions": [
    {
      "name": "create_hosts",
      "id": 740433627,
      "resource_type": "Host"
    }
  ],
  "locations": [],
  "organizations": []
}

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Escopo de localizações

Validations:

  • Must be a Integer

organization_id
opcional

Escopo de organização

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String

filter
requerido

Validations:

  • Must be a Hash

filter[role_id]
opcional

Validations:

  • Must be a String

filter[search]
opcional , nulo permitido

Validations:

  • Must be a String

filter[override]
opcional , nulo permitido

Validations:

  • Must be one of: true, false, 1, 0.

filter[permission_ids]
opcional , nulo permitido

Validations:

  • Must be an array of any type

filter[organization_ids]
opcional , nulo permitido

Validations:

  • Must be an array of any type

filter[location_ids]
opcional , nulo permitido

Validations:

  • Must be an array of any type