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 > Updating Blueprints > Add abstract resources to a blueprint

Add Abstract Resources to a Blueprint

Description: Add an abstract resource to a specific blueprint.

Signature: add_abstract_to_topology(topology_name, abstract_path, position_x, position_y, family, models, default_mode, publish_models, quantity, publish_quantity)

Parameters:

Name

Direction

Required

Description

topology_name

In

Yes

The name of the blueprint

abstract_path

In

Yes

The name of the abstract resource, or the path from the resource to the sub resource name

position_x

In

Yes

Indicate the x position in the diagram layout

position_y

In

Yes

Indicate the y position in the diagram layout

family

In

Yes

Specify the abstract resource family

models

In

No

Specify one or more models for the abstract resource

default_model

In

No

Specify the default model from the list of models (only for published models)

publish_models

In

Yes

Specify whether the models can be changed when a new sandbox is created from the blueprint

quantity

In

Yes

Specify the number of resources that this abstract resource represents

publish_quantity

In

Yes

Specify whether the quantity can be changed when a new sandbox is created from the blueprint

Sample:

packageEditor.add_abstract_to_topology('TestTopology','AbsChassis*',250,250,'Generic Chassis',['Generic Chassis Model'],True,5,True)