Skip to main content
Version: Latest

Add an Attribute to an Abstract Resource

Description: Add a new attribute to a specific abstract resource.

Signature: add_attribute_to_abstract(topology_name, abstract_path, attribute_name, possible_values, default_value, required, publish)

Parameters:

NameDirectionRequiredDescription
topology_nameInYesThe name of the blueprint
abstract_pathInYesThe name of the abstract resource, or the path from the resource to the sub resource name
attribute_nameInYesSpecify the name of the attribute that you want to add to the abstract resource
possible_valuesInNoSpecify a list of possible values
default_valueInNoSpecify the default value for the attribute
requiredInYesSpecify whether this attribute is required or not
publishInYesSpecify whether this attribute is published and can be changed when a new sandbox is created from the blueprint

Samples:

packageEditor.add_attribute_to_abstract('Blueprint1','AbsChassis*','Version',[],True,True)