GET /api/compliance/scap_contents
Lister le contenu SCAP

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

Définir le contexte organisationnel actuel de la demande

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
created_at
filename
location
location_id
organization
organization_id
title

GET /api/compliance/scap_contents/:id/xml
Télécharger un contenu SCAP au format XML

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

Définir le contexte organisationnel actuel de la demande

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.


GET /api/compliance/scap_contents/:id
Afficher un élément de contenu SCAP

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

Définir le contexte organisationnel actuel de la demande

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/compliance/scap_contents
Créer un contenu SCAP

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

Définir le contexte organisationnel actuel de la demande

Validations:

  • Must be a Integer

scap_content
requis

Validations:

  • Must be a Hash

scap_content[title]
requis

Nom du contenu SCAP

Validations:

  • Must be a String

scap_content[scap_file]
requis

XML avec contenu SCAP

Validations:

  • Must be a String

scap_content[original_filename]
optionel , nil autorisé

Nom de fichier original du fichier XML

Validations:

  • Must be a String

scap_content[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

scap_content[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


PUT /api/compliance/scap_contents/:id
Mettre à jour un contenu SCAP

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

Définir le contexte organisationnel actuel de la demande

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.

scap_content
requis

Validations:

  • Must be a Hash

scap_content[title]
optionel

Nom du contenu SCAP

Validations:

  • Must be a String

scap_content[scap_file]
optionel

XML avec contenu SCAP

Validations:

  • Must be a String

scap_content[original_filename]
optionel , nil autorisé

Nom de fichier original du fichier XML

Validations:

  • Must be a String

scap_content[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

scap_content[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


DELETE /api/compliance/scap_contents/:id
Supprime un contenu SCAP

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

Définir le contexte organisationnel actuel de la demande

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.