POST DTA Snapshots SnapshotID Diff
The POST /dta_snapshots/{snapshotId}/diff method is used to create a diff between two DTA snapshots as a new snapshot. This allows you to compare, for example, the state of your environment when you captured a snapshot last month with the state of your environment today and see only what has changed in that time. This method returns HTTP 201 Created on a success.
Table 17: POST DTA Snapshots SnapshotID Diff Input Parameters
| Name | In | Description |
|---|---|---|
| snapshotId | path |
A string indicating the name of the newer snapshot for the compare. |
| compareToSnapshotId | body |
A string indicating the name of the older snapshot for the compare. |
| diffSnapshotId | body |
A string indicating the name to give to the differencing snapshot generated by the request. This alphanumeric value supports underscores and does not support spaces. For example: diff_snapshot_1
|
API_KEY='<YOUR-API-KEY>'
HUB='https://<YOUR-HUB-SERVER>'
curl -sS -X POST "$HUB/api/v1/dta_snapshots/snapshot_7"/diff \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $API_KEY" \
-d '{
"compareToSnapshotId": "snapshot_8",
"diffSnapshotId": "diff_snapshot_1"
}'Was this page helpful? Provide Feedback