GET /api/template_kinds
Listar todos os tipos de modelo

Exemplos

GET /api/template_kinds
200
{
  "total": 7,
  "subtotal": 7,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "iPXE",
      "id": 698706415
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "provision",
      "id": 983253650
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "PXELinux",
      "id": 452984334
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "script",
      "id": 478250810
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "finish",
      "id": 550103832
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "PXEGrub",
      "id": 131565194
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "PXEGrub2",
      "id": 701398793
    }
  ]
}

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

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Classificar campo e ordem, ex.: ‘id DESC’

Validations:

  • Must be a String

page
opcional

Número de página, iniciando em 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para retornar

Validations:

  • Must be a number.

Pesquisar campos

Nome do campo Tipo Valores possíveis
name string