CloudShell Version: 9.0 GA

Help Version: 1.0

CloudShell
TestShell
Api Guide
View / Download All Help Versions
API Guide
You are here: Shell Development and Blueprint Design API > Packaging API > Importing a Blueprint Package into CloudShell

Importing a Blueprint Package into CloudShell

Once you complete the required changes to the blueprints, do the following:

  1. Find the package Path you entered in the Load function.
  2. Locate the ZIP file located in that path and load it into the database.
  3. Import the blueprint packages to CloudShell:
    1. For manual import from the Self Service Portal, see Import a Blueprint Package into CloudShell
    2. For automatic import, use the QualiAPI import package function as follows:

      #Import the package into CloudShell

      1. # 1 – authenticate

        r = requests.put('http://localhost:9000/Api/Auth/Login', {"username": "admin", "password": "admin", "domain": "Global"})

        authcode = "Basic "+r._content[1:-1]

      2. #2 – Open the package before import

        fileobj = open("c:\\p.zip", 'rb')

      3. #3 – Send to CloudShell by calling Import Package REST API

        r = requests.post('http://localhost:9000/API/Package/ImportPackage',

        headers={"Authorization": authcode},

        files={"file": fileobj}