Default language.

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.kind


model.kind(node)


Returns the node kind corresponding to the given node.

 The given node can be any node.


The following code example is taken from patterns working with cloud resources:

define getCloudNodes(node) -> service, region, provider
        '''
        Returns the related cloud service, region and provider for the given node.
        ''' 
        kind := model.kind(node);

        // Traverse to the cloud service from the given node

        if kind = 'SoftwareInstance' then
            results := search(in node
                traverse RunningSoftware:HostedSoftware:Host:CloudService);
        else
            // We don't know how to traverse from this node kind
            log.error("Unsupported cloud node kind %kind%");
            return none, none, none;
        end if;

 


 

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