Revert to Snapshot
post
/rest/v19/migrationTasks/{taskId}/actions/revertToSnapshot
This endpoint is used to revert to the snapshot created by the specified task.
Request
Path Parameters
-
taskId(required): number
The task identifier.
Response
Supported Media Types
- application/json
Default Response
Migration revert to snapshot task details
Root Schema : Task details
Type:
object
Title:
Task details
Task details
Show Source
-
links:
array Links
Title:
Links
Links to the related objects. -
taskId:
integer
Title:
Task Id
The status log task Id.
Nested Schema : Links
Type:
array
Title:
Links
Links to the related objects.
Show Source
-
Array of:
object Reference Links
Title:
Reference Links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : Reference Links
Type:
object
Title:
Reference Links
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
href
URL to the related object -
rel:
string
Title:
Link
Link relationship to the current object
Examples
The following example shows how to revert to the snapshot created by the specified task by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/migrationTasks/3023660703/actions/revertToSnapshot
Response Body Sample
{ "taskId": 3023660703, "links": [{ "rel": "related", "href": "https://sitename.oracle.com/rest/v19/migrationTasks/3023660703" } ] }