Versions Compared

Key

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

...

This parameter is only allowed for GET methods on api, datastore, and data resources. A 400 Bad Request error is returned if used for other methods or resource types.


Fields example

http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells/cellinfolist=1?fields=cell-uuid;cell-idhttp://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine?fields=transition-function/delta/output/state

...

rests Interface Fields Examples

GET all - http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells

GET cell details - http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells/cellinfolist=1

GET cell details with filtering - http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/gnodeb:cells/cellinfolist=1?fields=cell-uuid

...

turing-machine:turing-machine?fields=transition-function/delta/output/state


JSON Viewer
modeTree
{
    "turing-machine:turing-machine": {
        "transition-function": {
            "delta": [
                {
                    "output": {
                        "state": 1
                    }
                },
                {
                    "output": {
                        "state": 3
                    }
                },
                {},
                {
                    "output": {
                        "state": 4
                    }
                },
                {},
                {
                    "output": {
                        "state": 2
                    }
                },
                {}
            ]
        }
    }
}



rests Interface Depth Examples

...

  1. Run docker load -i image.tar to unpack netconf docker image v2.8.6
  2. Unzip certs.tar to same folder as docker-compose.yml (SDNC docker)
  3. Run docker-compose up -d 
  4. Unzuip Unpack sim.zip
  5. cd into sim & run docker-compose -f docker-compose-sim.yml up -d
  6. To access local SDNC use -  http://localhost:8282/apidoc/explorer/index.html
    • Credentials  : - admin / Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U

...