Migrate an API version
POST /apim/migrate_version/{version_path}
Overview
This API migrates an API version, including the selected asset types, to another version.
The destination version can be in the same or another API, Project, Environment/Org, or Snaplex.
Prerequisites
- Read access to the source project
- Write access to the target Org
Request
POST https://{controlplane_path}/api/1/rest/public/apim/migrate_version/{version_path}
Path parameters
| Key | Description |
|---|---|
controlplane_path |
Required. The path to the SnapLogic control plane:
elastic.snaplogic.com
For the UAT or EMEA control plane, substitute the name for elastic. For
example:
|
version_path |
Required. The path of the source API version.
Format: Example: |
Query parameters
None.
Request header
Basic authentication
In the request header, specify Basic for authorization, add your credentials (Login and password of your SnapLogic user or service account), and specify application/json for content type.
For more details on accounts refer to Manage accounts.
Authorization: Basic {base64_encoded <email>:<password>}
Content-Type: application/json
Example of Basic authenthication using Postman
Request body
{
"dest_version_path" : "...",
"dest_plex_path" : "...",
"asset_types" : [ ... ],
"duplicate_check" : true,
"async_mode" : true
}
| Key | Type | Description |
|---|---|---|
dest_version_path |
string |
The path to the destination API version.
Format: |
dest_plex_path |
string |
The path to the destination Snaplex.
Format: |
asset_types |
array | The list of asset types to migrate.
Valid values:
Default: All valid asset types. Important:
If you are migrating or copying accounts or policies to a different Environment/Org,
|
duplicate_check |
Boolean |
If If Default: |
async_mode |
Boolean | If true, the migration is done asynchronously.
A response is immediately returned with Default: |
Response
Response body
{
"response_map": {
"successful": [
{
"snode_id": "...",
"name": "..."
},
...
],
"failed": [ ... ],
"warnings": [ ... ]
},
"http_status_code": 200
}
| Key | Type | Description |
|---|---|---|
successful |
array | An array of objects containing information about assets that were successfully migrated. |
failed |
array | An array of objects containing information about assets that were not migrated. |
warnings |
array | An array of warnings encountered during the migration. |
snode_id |
string | The ID of the asset in the destination JCC node. |
name |
string | The name of the copied asset. |