Skip to main content
Version: Latest

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, is_shared)

Parameters:

NameDirectionRequiredDescription
topology_nameInYesThe name of the blueprint
service_aliasInYesSpecify the alias of the service that you want to remove
abstract_pathInYesThe name of the abstract resource, or the path from the resource to the sub resource name
position_xInYesIndicate the x position in the diagram layout
position_yInYesIndicate the y position in the diagram layout
familyInYesSpecify the abstract resource family
modelsInNoSpecify one or more models for the abstract resource
default_modelInNoSpecify the default model from the list of models (only for published models)
publish_modelsInYesSpecify whether the models can be changed when a new sandbox is created from the blueprint
quantityInYesSpecify the number of resources that this abstract resource represents
publish_quantityInYesSpecify whether the quantity can be changed when a new sandbox is created from the blueprint
is_sharedInNoIndicate the share level of the added abstract resource

Samples:

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