Information

This site will undergo a brief period of maintenance on Friday, 7 November at 1:30 AM Central/1:00 PM IST. During a 30 minute window, site availability will be intermittent.

Default language.

Information
Important This documentation space contains information about the SaaS version of BMC Helix Discovery. If you are using the on-premises version of BMC Helix Discovery, see BMC Helix Discovery 25.2 (On-Premises).

model.publish


model.publish(node, auto_rels)

Takes a node of kind ModelDefinition and publishes it, creating a BusinessService, TechnicalService or BusinessApplicationInstance node. If the model is already published, updates the existing published node.


The ModelDefinition node must have the following attributes:

  • key – a unique identifier.
  • name – the name of the service or application.
  • kind – one of:
    • BusinessService
    • TechnicalService
    • BusinessApplicationInstance
  • type – one of:
    • imported – to indicate an imported model.
    • pattern – to indicate a model that you have created using custom TPL, based on discovered data.

Calling model.publish with an unsupported type fails with an ECAError.

The ModelDefinition node must have relationships with the specification Definition:DefinitionContainment:IncludedItem:<kind> to all nodes included in the model.

If auto_rels is false, the ModelDefinition node must also have relationships of specification Definition:DefinitionContainment:IncludedItem:<kind> to all of the relationships between nodes that are included in the model.

If auto_rels is true, relationships between the included nodes are automatically included in the model.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Discovery (SaaS)