GET /api/ptables
Afficher toutes les tables de partition

GET /api/operatingsystems/:operatingsystem_id/ptables
Afficher toutes les tables de partition pour un système d'exploitation

GET /api/locations/:location_id/ptables
Afficher toutes les tables de partition d'un emplacement

GET /api/organizations/:organization_id/ptables
Afficher toutes les tables de partition par organisation

Paramètres

Nom du paramètre Description
operatingsystem_id
optionel

ID du système d'exploitation

Validations:

  • Must be a String

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
default true, false
family
layout
location
location_id
locked true, false
name
organization
organization_id
snippet true, false
template
vendor

GET /api/ptables/:id
Afficher une table de partition

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/ptables
Créer une table de partition

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
requis

Validations:

  • Must be a Hash

ptable[name]
requis

Validations:

  • Must be a String

ptable[description]
optionel , nil autorisé

Validations:

  • Must be a String

ptable[layout]
requis

Validations:

  • Must be a String

ptable[snippet]
optionel , nil autorisé

Validations:

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

ptable[audit_comment]
optionel , nil autorisé

Validations:

  • Must be a String

ptable[locked]
optionel , nil autorisé

Indique si le modèle peut être modifié

Validations:

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

ptable[os_family]
optionel , nil autorisé

Validations:

  • Must be a String

ptable[operatingsystem_ids]
optionel , nil autorisé

Tableau des ID de systèmes d'exploitation associés à la table de partition

Validations:

  • Must be an array of any type

ptable[host_ids]
optionel , nil autorisé

Tableau des ID des hôtes à associer à la table de partition

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
optionel , nil autorisé

Tableau des ID des groupes d'hôtes à associer à la table de partition

Validations:

  • Must be an array of any type

ptable[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

ptable[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


POST /api/ptables/import
Importer un modèle de provisioning

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

ptable
requis

Validations:

  • Must be a Hash

ptable[name]
optionel

Nom de modèle

Validations:

  • Must be a String

ptable[template]
optionel

contenu du modèle, notamment les métadonnées

Validations:

  • Must be a String

ptable[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

ptable[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type

options
optionel

Validations:

  • Must be a Hash

options[force]
optionel , nil autorisé

à utiliser si vous voulez mettre à jour les modèles verrouillés

Validations:

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

options[associate]
optionel , nil autorisé

détermine quand le modèle doit associer des objets en fonction de métadonnées, 'nouveau' signifie uniquement lors de la création d'un nouveau modèle, 'toujours' signifie à la fois pour les modèles nouveaux et existants en cours de mise à jour, 'jamais' ignore les métadonnées

Validations:

  • Must be one of: new, always, never.

options[lock]
optionel , nil autorisé

Verrouiller les modèles importés (faux par défaut)

Validations:

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

options[default]
optionel , nil autorisé

Définit le modèle par défaut, signifiant qu'il sera automatiquement associé aux nouvelles organisations et nouveaux emplacements (faux par défaut)

Validations:

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


GET /api/ptables/revision

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

version
optionel

version de modèle

Validations:

  • Must be a String


PUT /api/ptables/:id
Mise à jour d'une table de partition

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be a String

ptable
requis

Validations:

  • Must be a Hash

ptable[name]
optionel

Validations:

  • Must be a String

ptable[description]
optionel , nil autorisé

Validations:

  • Must be a String

ptable[layout]
optionel

Validations:

  • Must be a String

ptable[snippet]
optionel , nil autorisé

Validations:

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

ptable[audit_comment]
optionel , nil autorisé

Validations:

  • Must be a String

ptable[locked]
optionel , nil autorisé

Indique si le modèle peut être modifié

Validations:

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

ptable[os_family]
optionel , nil autorisé

Validations:

  • Must be a String

ptable[operatingsystem_ids]
optionel , nil autorisé

Tableau des ID de systèmes d'exploitation associés à la table de partition

Validations:

  • Must be an array of any type

ptable[host_ids]
optionel , nil autorisé

Tableau des ID des hôtes à associer à la table de partition

Validations:

  • Must be an array of any type

ptable[hostgroup_ids]
optionel , nil autorisé

Tableau des ID des groupes d'hôtes à associer à la table de partition

Validations:

  • Must be an array of any type

ptable[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

ptable[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


DELETE /api/ptables/:id
Supprimer une table de partition

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be a String


POST /api/ptables/:id/clone
Cloner un modèle

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

ptable
requis

Validations:

  • Must be a Hash

ptable[name]
requis

Nom de modèle

Validations:

  • Must be a String


GET /api/ptables/:id/export
Exporter un modèle de partition vers ERB

Paramètres

Nom du paramètre Description
location_id
optionel

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optionel

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requis

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.