Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

GET /backup_and_restore/restores

 

Retrieves a list of restores.

Retrieves a list of restores.

Table 1: GET /backup_and_restore/restores Resource Details

MIME Type

application/json

Table 2: GET /backup_and_restore/restores Request Parameter Details

Parameter

Type

Optionality

Data Type

MIME Type

Description

sort

query

Optional

String

text/plain

Optional - This parameter is used to sort the elements in a list.

Range

header

Optional

String

text/plain

Optional - Use this parameter to restrict the number of elements that are returned in the list to a specified range. The list is indexed starting at zero.

filter

query

Optional

String

text/plain

Optional - This parameter is used to restrict the elements in a list base on the contents of various fields.

fields

query

Optional

String

text/plain

Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas.

Table 3: GET /backup_and_restore/restores Response Codes

HTTP Response Code

Unique Code

Description

200

 

The restores were retrieved.

422

1018

The sort field must be one of the following fields: [id, initiated_by, time_initiated, time_completed, is_cross_deployment_restore, backup_name, backup_type, backup_version, backup_filename].

500

1000

An error occurred during the attempt to retrieve the restores.

Response Description

An array of restore objects. Restore objects contain the following fields:

  • id - Long - The ID of the restore.

  • initiated_by - String - The user or authorized service that initiated the restore.

  • host_id - Long - The host that was restored. For more information, see the following Hosts API:

    • api/config/deployment/hosts

  • time_initiated - Long - The number of milliseconds since epoch when the restore was started.

  • time_completed - Long - The number of milliseconds since epoch when the restore completed.

  • status - Enumeration - The status of the restore. The following values are available: PENDING, REQUESTING, INITIALIZING, IN_PROGRESS, FAILED, SUCCESS.

    • PENDING: This is the initial state of the restore once it is created. From this state the restore can be updated to the REQUESTING state.

    • REQUESTING: After the status is set to REQUESTING, a restore request is sent to the Backup and Restore Engine to initialize it as a new restore.

    • INITIALIZING: After the restore request is received by the Backup and Restore Engine it will update the status to INITIALIZING.

    • IN_PROGRESS: After the restore process begins the status will be updated to IN_PROGRESS.

    • FAILED: If the restore has completed with errors the status will be updated to FAILED.

    • SUCCESS: If the restore has completed without errors the status will be updated to SUCCESS.

  • is_cross_deployment_restore - Boolean - If the associated backup is being restored on a different Console with a set of new managed hosts, the condition is set to 'true'; otherwise, the condition is set to 'false'.

  • backup_id - Long - The ID of the backup associated with the restore. Once the restore completes this value will be updated to null.

  • backup_name - String - The name of the backup that was restored.

  • backup_version - String - The JSA version that corresponds to the backup that was restored.

  • backup_type - Enumeration - The backup type that was restored. This value will always be CONFIG.

  • backup_filename - String - The filename of the backup that was restored.

  • groups - Array of Enumeration - The set of groups that are included with the restore. These groups contain a subset of the following values: CUSTOM_RULES_CONFIG, DEPLOYMENT_CONFIG, USERS_CONFIG, LICENSE_CONFIG, QVM_CONFIG, INSTALLED_APPS_CONFIG, REPORT_TEMPLATES, ASSETS_DATA, OFFENSES_DATA.

    • CUSTOM_RULES_CONFIG: Restores custom rules, reference sets, reference data, and saved searches. If you have rules that depend on items other than reference data and saved searches, you need to use DEPLOYMENT_CONFIG in addition to CUSTOM_RULES_CONFIG for rules to be fully functional.

    • DEPLOYMENT_CONFIG: Restores the deployment model and administrator controlled settings and content. This group includes, but is not limited to the following content: domains, log sources, flow sources, system settings, and forwarding rules.

    • USERS_CONFIG: Restores users, authorized services, user roles, security profiles, and dashboards.

    • LICENSE_CONFIG: NEEDS DESCRIPTION

    • QVM_CONFIG: NEEDS DESCRIPTION

    • INSTALLED_APPS_CONFIG: Restores installed applications.

    • REPORT_TEMPLATES: Restores report templates.

    • ASSETS_DATA: Restores the asset model.

    • OFFENSES_DATA: Restores offenses. All offenses will be restored as closed.

Response Sample