Skip to main content
Version: Latest

Add an App to a Blueprint

Description: Add an app to an existing blueprint.

Signature: add_app(topology_name, topology_app)

Parameters:

NameDirectionRequiredDescription
topology_nameInYesThe name of the blueprint
topology_appInYes

Python object (TopologyApp) that defines the properties of the desired App to add

Notes
  • To set the App's properties, you can initialize the TopologyApp object and set the App's properties as they appear in CloudShell Portal's Apps management page, or load (into your API code) a blueprint package that contains the desired App to get the App’s context.

  • To specify the App's image, enter the full path to the image. For example:

    apps[0].appResource.imagePath = "C:\\temp\\Pictures\\app-image.jpg"

Sample:

packageEditor.add_app('TestTopology', topologyAppPythonObject)