Gets a snapshot zip file

get

/policy/risk/v1/snapshots/{snapshotId}

The given snapshot id can be downloaded as a zip file. This zip can be utilized to replicate in a different machine by uploading the same there.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Snapshot information.
Body ()
Root Schema : schema
Type: zip

401 Response

Unauthorized

500 Response

Internal server error

503 Response

Service Unavailable
Back to Top

Examples

The following example shows a sample request and response for downloading a given snapshot as a zip file.

cURL Command to Download a Snapshot as a ZIP in JSON Format

curl --location --request GET '<PolicyUrl>/policy/risk/v1/snapshots/<snapshotId>' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' >snapshot<DATE>.zip

Sample Response in JSON Format

A ZIP file is downloaded

cURL Command to Download a Snapshot as a ZIP in XML Format

curl --location --request GET '<PolicyUrl>/policy/risk/v1/snapshots/<snapshotId>' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' >snapshot<DATE>.zip

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SnapshotResponse>A ZIP file is downloaded</SnapshotResponse>
Back to Top