Skip to end of banner
Go to start of banner

Migrate a Project to Another Org

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19

POST /project/migrate/{project_path}

Overview

This API migrates a SnapLogic Project from one Org to another.

If the destination Project does not exist, it will be created.

Prerequisites

You need:

  • Read access to the source project

  • Write access to the target Org

Request

Path Parameters

Key

Description

pod_path

Required. The path to your SnapLogic pod.

Example: elastic.snaplogic.com

project_path

Required. The path to the SnapLogic Project to access.

Format: /{org}/{project_space}/{project_name}

The path comparison is case-sensitive.

Query Parameters

None.

Request Header

Specify Basic for authorization and application/json for content type.

Request Body

{
  "dest_path" : "...",
  "asset_types" : [ ... ],
  "async" : ...,
  "duplicate_check" : ...
}

Key

Type

Description

dest_path

string

Required. The path to the destination Project.

asset_types

array

Strings containing the types of assets to migrate.

Valid values:

  • File

  • Job

  • Account

  • Pipeline

  • Policy

If you are migrating or copying accounts or policies to a different Org,

  • The source Org must recognize the destination Org as a Trusted Org.

  • The destination Org must have at least the same security level as the source Org.

Learn how to add a trusted Org.

async

Boolean

If true, the migration is done asynchronously.

A response is immediately returned with status_token and status_url, which you can use to check on the status of the migration (Started, Completed, or Failed).

Default: true

duplicate_check

Boolean

If true, throws an exception if a project with the same name already exists at the specified path.

If false, overwrites any existing project with the same name at the specified path.

Default: true

Response

Status code only.

  • No labels