--- /dev/null
+{
+ "rest-client.environmentVariables": {
+ "local": {
+ "baseUrl": "http://localhost:8181",
+ "user": "admin",
+ "password": "admin",
+ "mountPoint": "ntsim_onf_core_model_1_4-0_51009",
+ },
+ }
+}
\ No newline at end of file
--- /dev/null
+# RESTCONF Commands to ONAP SDN-R/O-RAN O1 Controller
+
+This project shows a couple of examles for Bierman-RESTCONF commands and RFC8040-RESTCONF commands to OpenDaylight.
+
+This is an vsCode project using the [rest-client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) extension.
+
+Please adapt your enviroment in ./vscode/settings.json.
\ No newline at end of file
--- /dev/null
+GET {{baseUrl}}/restconf/modules HTTP/1.1
+Authorization: Basic {{user}} {{password}}
+Accept: application/json
--- /dev/null
+GET {{baseUrl}}/restconf/modules HTTP/1.1
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
\ No newline at end of file
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf?fields=node(node-id)
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
\ No newline at end of file
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf?content=nonconfig&fields=node(node-id;netconf-node-topology:available-capabilities/available-capability/capability)
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf?fields=node(node-id;netconf-node-topology:connection-status)
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
\ No newline at end of file
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf?fields=node(node-id;netconf-node-topology:connection-status)
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
--- /dev/null
+GET {{baseUrl}}/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/{{mountPoint}}/netconf-node-topology:available-capabilities
+Authorization: Basic {{user}} {{password}}
+Accept: application/json
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{mountPoint}}/netconf-node-topology:available-capabilities?fields=available-capability(capability)
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{mountPoint}}/yang-ext:mount/core-model-1-4:control-construct/logical-termination-point=e6c5831d-37ce-4ef4-b075-733f6791bde1/layer-protocol=pRppR4R/wire-interface-2-0:wire-interface-pac/wire-interface-configuration?fields=interface-name;problem-kind-severity-list(problem-kind-name)
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
--- /dev/null
+GET {{baseUrl}}/restconf/config/network-topology:network-topology/topology/topology-netconf
+Authorization: Basic {{user}} {{password}}
+Accept: application/json
\ No newline at end of file
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf?content=config HTTP/1.1
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
\ No newline at end of file
--- /dev/null
+GET {{baseUrl}}/restconf/operational/network-topology:network-topology/topology/topology-netconf
+Authorization: Basic {{user}} {{password}}
+Accept: application/json
+Content-Type: application/json
\ No newline at end of file
--- /dev/null
+GET {{baseUrl}}/rests/data/network-topology:network-topology?content=nonconfig
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
\ No newline at end of file
--- /dev/null
+POST {{baseUrl}}/restconf/operations/data-provider:read-network-element-connection-list HTTP/1.1
+Authorization: Basic {{user}} {{password}}
+Accept: application/json
+Content-Type: application/json
+
+{
+ "data-provider:input": {
+ "filter": [{
+ "property": "status",
+ "filtervalue": "Connecting"
+ }
+ ],
+ "sortorder": [{
+ "property": "node-id",
+ "sortorder": "descending"
+ }
+ ],
+ "pagination": {
+ "size": 10,
+ "page": 1
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+POST {{baseUrl}}/rests/operations/data-provider:read-network-element-connection-list HTTP/1.1
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
+Content-Type: application/yang-data+json
+
+{
+ "data-provider:input": {
+ "filter": [{
+ "property": "status",
+ "filtervalue": "Connecting"
+ }
+ ],
+ "sortorder": [{
+ "property": "node-id",
+ "sortorder": "descending"
+ }
+ ],
+ "pagination": {
+ "size": 10,
+ "page": 1
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+POST {{baseUrl}}/database/connectionlog/_search HTTP/1.1
+Content-Type: application/json
+
+{
+ "from": 3,
+ "size": 4,
+ "sort": {
+ "timestamp": "desc"
+ },
+ "query": {
+ "match_all": {}
+ }
+}
\ No newline at end of file
--- /dev/null
+POST {{baseUrl}}/restconf/operations/data-provider:create-network-element-connection
+Authorization: Basic {{user}} {{password}}
+Accept: application/json
+Content-Type: application/json
+
+{
+ "data-provider:input": {
+ "id": "new-mountpoint-name",
+ "node-id": "new-mountpoint-name",
+ "host": "10.10.10.10",
+ "port": "830",
+ "username": "netconf",
+ "password": "netconf",
+ "is-required": "true"
+ }
+}
\ No newline at end of file
--- /dev/null
+POST {{baseUrl}}/rests/operations/data-provider:create-network-element-connection HTTP/1.1
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
+Content-Type: application/yang-data+json
+
+{
+ "data-provider:input": {
+ "id": "new-mountpoint-name",
+ "node-id": "new-mountpoint-name",
+ "host": "10.10.10.10",
+ "port": "830",
+ "username": "netconf",
+ "password": "netconf",
+ "is-required": "true"
+ }
+}
\ No newline at end of file