Importing and exporting Orchestrator elements

In this recipe, we will learn how to import and export elements from one Orchestrator to another using Orchestrator Client.

Getting ready

We need at least one workflow, action, or other element that we can export, delete, and import. If you have two Orchestrator servers, you can export the element on one and import into the other.

How to do it...

In this example, we will use a workflow to import and export an object. However, the same methods apply to all Orchestrator elements.

Exporting an object

We will use the 00.00 BasicWorkflow workflow of the example package in this example. Exporting also works for other elements:

  1. To export a workflow, right-click on it and select Export workflow.
  2. A window will pop up that shows you your local drives from the computer you are running Orchestrator Client on.
  3. Select a directory and a name for the workflow (the default name is the name of the workflow). The default file extension is .workflow.
  4. You can define a name to encrypt the export with, basically an encryption string. This will make it possible for other importers to import the file, but not to edit it. The name is not a password and Orchestrator will not ask for it; encrypting with the name will just create an encrypted file.
  5. Click on Save.

    Exporting an object

Importing an element

To import a workflow:

  1. Right-click on a folder and select Import workflow.
  2. A window will pop up that shows you your local drives from the computer you are running the Orchestrator Client on.
  3. Select a directory and a name for the workflow you would like to import.

    Tip

    Orchestrator will not ask you to confirm the SSL certificate, nor will it import any dependencies that this workflow might have.

  4. If the workflow already exists, a warning will be displayed. You can either select Cancel or continue the import.
  5. The workflow will now be imported into the folder you right-clicked on in step 1.

How it works...

You can import and export single Orchestrator objects. This will only import and export the element and not its sub-elements or elements the workflow (or action) depends on. You can use a package (see the Working with packages recipe in this chapter) to export multiple workflows as well as their dependent elements. As workflows are identified by their IDs and actions by their name and module, it is important to realize that a single workflow export/import might not result in a working configuration. You can try this with the 04.03 Export-Package workflow.

When you export an object, then it will be exported along with the SSL certificate of the Orchestrator installation (the one we created in the Package Signing Certificate section of the Important Orchestrator configurations recipe in Chapter 1, Installing and Configuring Orchestrator).

Tip

The elements that can be imported and exported are Workflow, Action, Resource, Configuration, and Policy Template.

In addition to this, the element will keep its ID when exported and imported. As all IDs are unique (even across Orchestrator installations), this is an important point.

See also

Have a look at the Working with packages recipe in this chapter and the Managing Remote Orchestrator recipe in Chapter 3, Distributed Design.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset