Repeat Export Snapshot (v2)

Creates a new snapshot by repeating the export operation from an existing application snapshot.

Required Roles

Service Administrator

REST Resource

POST /interop/rest/v2/migration/snapshots/repeatexport

Request

Supported Media Types: application/json

Table 2-236 Request Parameters

Name Description Type Required Default
snapshotName Name of the existing application snapshot to be used for the repeat export operation. Payload Yes None
targetSnapshotName Name of the new snapshot to be created as part of the repeat export operation. Payload Yes None

Example URL and Payoad

https://<BASE-URL>/interop/rest/v2/migration/snapshots/repeatexport

Request Payload Example: Repeat Export All Artifacts and Categories from the Artifact Snapshot

{
    "snapshotName": "Artifact Snapshot",
    "targetSnapshotName": "Artifact Snapshot ReExport"
}

Response

Table 2-237 Parameters

Name Description
details In the case of errors, details are published with the error string
status See Migration Status Codes
links Detailed information about the link
href Links to API call
action The HTTP call type
rel Is self, which denotes the URL of this REST API.
data Parameters as key value pairs passed in the request

Example 1: Repeat Export is in Progress :


{
    "status": -1,
    "items": null,
    "links": [
        {
            "href": "https://<BASE-URL>/interop/rest/v2/migration/snapshots/repeatexport",
            "action": "POST",
            "rel": "self"
        },
        {
            "href": "https://<BASE-URL>/interop/rest/v2/status/migration/3",
            "action": "GET",
            "rel": "Job Status"
        }
    ]
}

Example 2: Repeat Export Completed Successfully:

{
    "details": null,
    "status": 0,
    "items": [
        {
            "name": "Task Information",
            "source": "Shared Services",
            "destination": "/Artifact Snapshot ReExport/HSS-Shared Services",
            "links": [
                {
                    "href": "https://<BASE-URL>/interop/rest/v2/status/migration/3/0/details?limit=25&offset=0&msgtype=info",
                    "action": "GET",
                    "rel": "Job Details",
                    "data": null
                }
            ]
        },
        {
            "name": "Task Information",
            "source": "Vision",
            "destination": "/Artifact Snapshot ReExport/HP-Vision",
            "links": [
                {
                    "href": "https://<BASE-URL>/interop/rest/v2/status/migration/3/1/details?limit=25&offset=0&msgtype=info",
                    "action": "GET",
                    "rel": "Job Details",
                    "data": null
                }
            ]
        },
        {
            "name": "Task Information",
            "source": "Document Repository",
            "destination": "/Artifact Snapshot ReExport/DOCREP-Document Repository",
            "links": [
                {
                    "href": "https://<BASE-URL>/interop/rest/v2/status/migration/3/2/details?limit=25&offset=0&msgtype=info",
                    "action": "GET",
                    "rel": "Job Details",
                    "data": null
                }
            ]
        },
        {
            "name": "Task Information",
            "source": "Calculation Manager",
            "destination": "/Artifact Snapshot ReExport/CALC-Calculation Manager",
            "links": [
                {
                    "href": "https://<BASE-URL>/interop/rest/v2/status/migration/3/3/details?limit=25&offset=0&msgtype=info",
                    "action": "GET",
                    "rel": "Job Details",
                    "data": null
                }
            ]
        },
        {
            "name": "Task Information",
            "source": "FDM Enterprise Edition",
            "destination": "/Artifact Snapshot ReExport/FDMEE-FDM Enterprise Edition",
            "links": [
                {
                    "href": "https://<BASE-URL>/interop/rest/v2/status/migration/3/4/details?limit=25&offset=0&msgtype=info",
                    "action": "GET",
                    "rel": "Job Details",
                    "data": null
                }
            ]
        }
    ],
    "links": [
        {
            "href": "https://<BASE-URL>/interop/rest/v2/status/migration/3",
            "action": "GET",
            "rel": "self",
            "data": null
        }
    ]
}

Example 3: Failed Response (Snapshot Does Not Exist):

{
    "status": 8,
    "details": "Artifact_Snapshot12 snapshot does not exists.",
    "items": null,
    "links": [
        {
            "href": "https://<BASE-URL>/interop/rest/v2/migration/snapshots/repeatexport",
            "action": "POST",
            "rel": "self"
        }
    ]
}

Example 3: Failed Response (Target Snapshot Already Exists):

{
    "status": 8,
    "details": "Artifact_Snapshot_ReExport snapshot already exists.",
    "items": null,
    "links": [
        {
            "href": "https://<BASE-URL>/interop/rest/v2/migration/snapshots/repeatexport",
            "action": "POST",
            "rel": "self"
        }
    ]
}