Migrate a proxy
POST https://{controlplane_path}/api/1/rest/public/apim/migrate_proxy
Overview
This API migrates a proxy, including all its endpoints, policies, and files.
- The source Environment/Org must recognize the destination Environment/Org as a Trusted Environment/Org.
- The destination Environment/Org must have at least the same security level as the source Environment/Org.
Prerequisites
- Read access to the source proxy
- Write access to the target Org
Request
POST https://{controlplane_path}/api/1/rest/public/apim/migrate_proxy
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:
|
Query parameters
None.
Request header
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 authentication using Postman
When using JWT authentication, the API requests includes specific headers. In the
request header, specify Bearer Token for authorization, add the token,
and specify application/json for content type. These headers are
automatically added when you configure bearer token authentication in your API client.
The authorization header contains the word Bearer followed by a
space and your JWT token.
Authorization: Bearer Token {token}
Content-Type: application/json
Example of JWT authenthication using Postman
Request body
{
"source_org" : "...",
"source_proxy_name" : "...",
"dest_org" : "...",
"dest_proxy_name" : "...",
"duplicate_check" : true
}
| Key | Type | Description |
|---|---|---|
source_org |
string | Required. The name of the source Environment/Org. |
source_proxy_name |
string | Required. The name of the source proxy. |
dest_org |
string | Required. The name of the destination Environment/Org. |
dest_proxy_name |
string | The name of the destination proxy. Required if migrating within the same Environment/Org. |
duplicate_check |
Boolean |
If If Default: |
Response
{
"response_map": {
"source_proxy_path": "...",
"destination_proxy_path": "...",
"proxy_status": {
"deleted_duplicate_proxy": {
"proxy_path": "...",
"snode_id": "..."
},
"status": "...",
"snode_id": "...",
"migrated_policies": [ ... ],
"files": [
{
"status": "...",
"file_name": "...",
"file_path": "...",
"snode_id": "..."
}
]
},
"proxy_endpoint_status": {
"status": "...",
"proxy_endpoints": [
{
"myEndpoint1": {
"proxy_endpoint_path": "...",
"snode_id": "...",
"policies": [ ... ]
}
}
],
"reason": "..."
}
},
"http_status_code": 200
}
| Key | Type | Description |
|---|---|---|
source_proxy_path |
string | The path to the source proxy.
Format: |
destination_proxy_path |
string | The path to the destination proxy.
Format: |
proxy_status |
object | Information about the migration of the proxy and its policies. |
proxy_status » deleted_duplicate_proxy |
object | If duplicate_check was set to false, information about the existing proxy with the same name, if any, in the destination Environment/Org.
|
proxy_status » status |
string | The status of the migration of the proxy.
Possible values:
|
proxy_status » snode_id |
string | The ID of the JCC node that performed the operation. |
proxy_status » migrated_policies |
array | An array of strings containing the friendly names of the policies that were migrated with the proxy. |
proxy_status » files |
array | An array of objects containing information about the migrated files.
Each object contains the following information:
|
proxy_endpoint_status |
object | Information about the migration of the proxy's endpoints. |
proxy_endpoint_status » status |
string | The status of the migration of the proxy endpoints.
Possible values:
|
proxy_endpoint_status » proxy_endpoints |
array | An array of objects containing information about the migrated endpoints.
Each object contains a key-value pair.
|
reason |
string | If the migration failed, the reason for the failure. |