Path Representation

Extends network resource schema.

A Path is an ordered list of connected network resources.

JSON Schema

See http://unis.crest.iu.edu/schema/20120709/path.

Attributes

The following table contains only the Path specific attributes, for the attributes extended from network resource see network resource schema.

Name Value Description
directed Boolean Directed or undirected Path.
hops list ordered list of connected network resources.

Example

The following is a simple Path representation example:

{
    "$schema": "http://unis.crest.iu.edu/schema/20120709/path#",
    "id": "pathid",
    "selfRef": "http://example.com/paths/pathid",
    "ts": 1336775637000,
    "name": "path1",
    "urn": "urn:ogf:network:domain=example.com:path=path1",
    "description": "This is a sample path",
    "directed": true,
    "hops": [
        {
            "href": "http://example.com/ports/1",
            "rel": "full"
        },
        {
            "href": "http://example.com/nodes/1",
            "rel": "full"
        },
        {
            "href": "http://example.com/ports/2",
            "rel": "full"
        },
        {
            "href": "http://example.com/nodes/2",
            "rel": "full"
        },
        {
            "href": "http://example.com/ports/3",
            "rel": "full"
        }
    ]
}

Actions

  • insert Creates new Path(s).
  • list/query Return all Paths registered in the UNIS instance.
  • get Return the Path’s representation.
  • update Update the specified Path.
  • delete Delete a Path.
  • patch patch the specified Path.