GET /api/compliance/tailoring_files
Répertorier les fichiers de personnalisation

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

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
name
organization
organization_id

GET /api/compliance/tailoring_files/:id/xml
Télécharger un fichier de personnalisation 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

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.


GET /api/compliance/tailoring_files/:id
Afficher un fichier de personnalisation

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/compliance/tailoring_files
Créer un fichier de personnalisation

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

tailoring_file
requis

Validations:

  • Must be a Hash

tailoring_file[name]
requis

Nom du fichier de personnalisation

Validations:

  • Must be a String

tailoring_file[scap_file]
requis

XML contenant le fichier de personnalisation

Validations:

  • Must be a String

tailoring_file[original_filename]
optionel , nil autorisé

Nom de fichier original du fichier XML

Validations:

  • Must be a String

tailoring_file[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

tailoring_file[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


PUT /api/compliance/tailoring_files/:id
Mettre à jour un fichier de personnalisation

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.

tailoring_file
requis

Validations:

  • Must be a Hash

tailoring_file[name]
optionel

Nom du fichier de personnalisation

Validations:

  • Must be a String

tailoring_file[scap_file]
optionel

XML contenant le fichier de personnalisation

Validations:

  • Must be a String

tailoring_file[original_filename]
optionel , nil autorisé

Nom de fichier original du fichier XML

Validations:

  • Must be a String

tailoring_file[location_ids]
optionel , nil autorisé

REMPLACER les emplacements par les id donnés

Validations:

  • Must be an array of any type

tailoring_file[organization_ids]
optionel , nil autorisé

REMPLACER les organisations qui ont les ID suivants

Validations:

  • Must be an array of any type


DELETE /api/compliance/tailoring_files/:id
Supprime un fichier de personnalisation

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.