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 TopResponse
Supported Media Types
- application/xml
- application/json
200 Response
Snapshots information.
Root Schema : AllSnapshotsResponse
Type:
Show Source
object-
message: string
Message related to the status of the request. sent.
-
snapshots: array
snapshots
All snapshots that are available.
-
status: string
Status of the request
Nested Schema : snapshots
Type:
arrayAll snapshots that are available.
Show Source
-
Array of:
object SnapshotData
Snapshot data
Nested Schema : SnapshotData
Type:
objectSnapshot data
Show Source
-
createTime: string
Create Time of snapshot
-
description: integer
Description of the snapshot
-
name: string
Name of the snapshot
-
snapshotId: string
Unique identifier of snapshot
401 Response
Unauthorized
500 Response
Internal server error
503 Response
Service Unavailable
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>