GET /api/template_kinds
Afficher tous les types de modèles

Exemples

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
    }
  ]
}

Paramètres

Nom du paramètre Description
location_id
optionel

Tri par emplacement

Validations:

  • Must be a Integer

organization_id
optionel

Tri par organisation

Validations:

  • Must be a Integer

search
optionel

filtrer les résultats

Validations:

  • Must be a String

order
optionel

Champ et sens de tri, ex: ‘id DESC’

Validations:

  • Must be a String

page
optionel

Numéro de la page, commençant par 1

Validations:

  • Must be a number.

per_page
optionel

Nombre de résultats par page à renvoyer

Validations:

  • Must be a number.

Rechercher les champs

Nom du champ Type Valeurs possibles
name string