Gets all the snapshots available

get

/policy/risk/v1/snapshots

Request

There are no request parameters for this operation.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Snapshots information.
Body ()
Root Schema : AllSnapshotsResponse
Type: object
Show Source
Nested Schema : snapshots
Type: array
All snapshots that are available.
Show Source
Nested Schema : SnapshotData
Type: object
Snapshot data
Show Source

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 retrieving all the snapshots.

cURL Command to Retrieve all the Snapshots in JSON Format

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

Sample Response in JSON Format

{
    "status": "200",
    "message": "Snapshots information.",
    "snapshots": [
        {
            "name": "A sample SS",
            "description": "This is a test sample SS",
            "snapshotId": "20101",
            "createTime": "11-17-2021 11:10:38"
        },
        {
            "name": "OAAM Base Snapshot",
            "description": "Snapshot that contains out of box content that is required to run basic risk analysis policies, all conditions, rules, groups, English(US) questions, validations, question categories, basic entities, patterns etc.",
            "snapshotId": "1",
            "createTime": "07-02-2021 22:28:22"
        }
    ]
}

cURL Command to Retrieve all the Snapshots in XML Format

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

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <AllSnapshotsResponse>
     <status>200</status>
     <message>Snapshots information.</message>
     <snapshots>
         <name>A sample SS</name>
         <description>This is a test sample SS</description>
         <snapshotId>20101</snapshotId>
         <createTime>11-17-2021 11:10:38</createTime>
     </snapshots>
     <snapshots>
         <name>OAAM Base Snapshot</name>
         <description>Snapshot that contains out of box content that is required to run basic risk analysis policies, all conditions, rules, groups, English(US) questions, validations, question categories, basic entities, patterns etc.</description>
         <snapshotId>1</snapshotId>
         <createTime>07-02-2021 22:28:22</createTime>
     </snapshots>
 </AllSnapshotsResponse>
Back to Top