model.publish


model.publish(node)

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 – usually "imported", to indicate an imported model; in rare cases could be "sam" or "static", to create a model that can be edited in the UI.

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

 

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