.. _user/services/structure/resources/link: *********** Cybus::Link *********** The link resource provides direct access to any web-resource. This resource can be completely external to the Connectware (e.g. https://github.com) or point to a location that is available within a container (when the container internally runs a web-server). Link resources are typically rendered as buttons and provide a quick access to information (like dashboards, specific documentation, etc.)directly related to the corresponding service. .. note:: If the internal HTTP server of a service container requires the button URLs to contain a trailing slash or some specific path on the container, please add that information to `href` parameter as well. Properties ========== =============== ============ ============ ======= Property Type Required Default =============== ============ ============ ======= `name`_ ``string`` **Required** `href`_ ``string`` **Required** `ingressRoute`_ ``string`` Optional =============== ============ ============ ======= name ^^^^ Name of the link (label on the button) - type: ``string`` - maximum length: 20 characters href ^^^^ Href of the button link - type: ``string`` ingressRoute ^^^^^^^^^^^^^ Reference to an already declared :ref:`Cybus::IngressRoute `. Use ``!ref `` If this property is used the `href` property must be defined relative to the ingress route, i.e. only the path of the inner HTTP server must be defined. - type: ``string`` Example ======= .. code-block:: yaml :linenos: myDashboardLink: type: Cybus::Link properties: ingressRoute: !ref dashboardRoute href: ui/ name: Dashboard myExternalLink: type: Cybus::Link properties: href: https://github.com name: Github