Other Types

This section includes the brief description for the following:

Artifact Types

artifact_types is a reusable entity in a servcie template that defines the type of one or more files that are used to define implementation or deployment artifacts. These are referenced by nodes or relationships on their operation.

Example

artifact_types:
  QCOW:
    derived_from: tosca:Deployment.Image.VM
    properties:
      os:
        type: string
      version:
        type: version
    mime_type: application/x-qcow
    file_ext: [ qcow, qcow2 ]

See also

For more information, refer to the TOSCA Artifact Type section

Capability Types

capability_types is a reusable entity that describes a kind of capability that a node type can declare to expose. Implicit or explicit requirements that are declared as part of one node can be matched or fulfilled by the capabilities declared by another node.

Example

capability_types:
  Socket:
    properties:
      standard:
        type: string

See also

For more information, refer to the TOSCA Capability Type section

Relationship Types

relationship_types is a reusable entity that defines the type of one or more relationships between Node Types or Node Templates.

Example

relationship_types:
  Plug:
    properties:
      vendor:
        type: string
        required: false
    attributes:
      ip_address:
        type: string

See also

For more information, refer to the TOSCA Relationship Types section

Interface Types

interface_types is a reusable entity that describes a set of operations that can be used to interact with or manage a node or relationship in a TOSCA topology.

Example

interface_types:
    Backup:
      operations:
        start_backup: {}

See also

For more information, refer to the TOSCA Interface Types section

Group Types

group_types defines logical grouping types for nodes.

Example

group_types:
 ResourceGroup:
    # Groups can have properties
    properties:
      priority:
        type: float
    members: # node or group types
    - tosca:Compute
    - tosca:Abstract.Storage

See also

For more information, refer to the TOSCA Group Types section

Policy Types

policy_types defines a type of requirement that affects or governs an application or service’s topology at some stage of its lifecycle, but is not explicitly part of the topology itself.

Example

policy_types:
  Backup:
    targets:
    # Can include both node types and group types
    - tosca:Compute
    - RedundantResources # This group type is declared below
    # If “targets” is not specified then any node template or group can be a target

See also

For more information, refer to the TOSCA Policy Types section