Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

The base type of elements which can be part of a service.

Properties


NameRequiredTypeConstraintsDescription
catalog_infoyesonap.datatype.CatalogInfo

Only Catalog logic may assign and modify this property. For all other ONAP components and actors, it is read-only

Vital records assigned to and maintained by the model catalog for each node template: UUIDs, versions, etc.
rolenostring
The role played by the template in the topology.


Attributes


NameRequiredTypeConstraintsDescription
instance_name
string
The name of the run-time instance in a deployment. MAY be different for different instances of the same template. This is unlike the tosca_name attribute of the tosca.nodes.Root node type, which is always the same for all instances of one template.


Capabilities

None

Requirements

None

TOSCA Definition


Code Block
titleTOSCA Definition
linenumberstrue
node_types:
  onap.nodes.Resource:
    description: |
      a base of the ONAP hierarchy of resources which can be part of a service
    derived_from: tosca.nodes.Root
    properties:
      catalog_info:
        type: onap.datatypes.CatalogInfo
        description:
        required: true
        # generated by Design Time Catalog once, then never changed
      role:
        type: string
        description: the role a template plays in a topology
        required: false
    attributes:
      instance_name: 
        type: string
        description: the name of the run-time instance of in the deployment  

Examples

NoneAdditional notes