Advertisement
PANTHEONtech

[Cisco NSO] lighty.io POSTMAN Collection

Apr 24th, 2020
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.26 KB | None | 0 0
  1. {
  2.     "info": {
  3.         "_postman_id": "a2f46d7d-87fb-4c55-836b-960b1dadf88e",
  4.         "name": "lighty NSO",
  5.         "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  6.     },
  7.     "item": [
  8.         {
  9.             "name": "PUT nso node",
  10.             "request": {
  11.                 "auth": {
  12.                     "type": "basic",
  13.                     "basic": [
  14.                         {
  15.                             "key": "password",
  16.                             "value": "admin",
  17.                             "type": "string"
  18.                         },
  19.                         {
  20.                             "key": "username",
  21.                             "value": "admin",
  22.                             "type": "string"
  23.                         }
  24.                     ]
  25.                 },
  26.                 "method": "PUT",
  27.                 "header": [
  28.                     {
  29.                         "key": "Content-Type",
  30.                         "name": "Content-Type",
  31.                         "value": "application/json",
  32.                         "type": "text"
  33.                     }
  34.                 ],
  35.                 "body": {
  36.                     "mode": "raw",
  37.                     "raw": "\n{\n\t\"netconf-topology:node\":[ { \n\t\t\"node-id\":\"nso\",\n\t\t\"host\":\"127.0.0.1\",\n\t\t\"port\":2022,\n\t\t\"username\":\"admin\",\n\t\t\"password\":\"admin\",\n\t\t\"tcp-only\":false,\n\t\t\"keepalive-delay\":0,\n\t\t\"netconf-node-configuration:schemaless\":false\n\t} ]\n}"
  38.                 },
  39.                 "url": {
  40.                     "raw": "http://localhost:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=nso",
  41.                     "protocol": "http",
  42.                     "host": [
  43.                         "localhost"
  44.                     ],
  45.                     "port": "8888",
  46.                     "path": [
  47.                         "restconf",
  48.                         "data",
  49.                         "network-topology:network-topology",
  50.                         "topology=topology-netconf",
  51.                         "node=nso"
  52.                     ]
  53.                 }
  54.             },
  55.             "response": []
  56.         },
  57.         {
  58.             "name": "GET nso node",
  59.             "protocolProfileBehavior": {
  60.                 "disableBodyPruning": true
  61.             },
  62.             "request": {
  63.                 "auth": {
  64.                     "type": "basic",
  65.                     "basic": [
  66.                         {
  67.                             "key": "password",
  68.                             "value": "admin",
  69.                             "type": "string"
  70.                         },
  71.                         {
  72.                             "key": "username",
  73.                             "value": "admin",
  74.                             "type": "string"
  75.                         }
  76.                     ]
  77.                 },
  78.                 "method": "GET",
  79.                 "header": [
  80.                     {
  81.                         "key": "Content-Type",
  82.                         "name": "Content-Type",
  83.                         "value": "application/json",
  84.                         "type": "text"
  85.                     }
  86.                 ],
  87.                 "body": {
  88.                     "mode": "raw",
  89.                     "raw": ""
  90.                 },
  91.                 "url": {
  92.                     "raw": "http://localhost:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=nso",
  93.                     "protocol": "http",
  94.                     "host": [
  95.                         "localhost"
  96.                     ],
  97.                     "port": "8888",
  98.                     "path": [
  99.                         "restconf",
  100.                         "data",
  101.                         "network-topology:network-topology",
  102.                         "topology=topology-netconf",
  103.                         "node=nso"
  104.                     ]
  105.                 }
  106.             },
  107.             "response": []
  108.         },
  109.         {
  110.             "name": "PUT activate ACL service",
  111.             "request": {
  112.                 "auth": {
  113.                     "type": "basic",
  114.                     "basic": [
  115.                         {
  116.                             "key": "password",
  117.                             "value": "admin",
  118.                             "type": "string"
  119.                         },
  120.                         {
  121.                             "key": "username",
  122.                             "value": "admin",
  123.                             "type": "string"
  124.                         }
  125.                     ]
  126.                 },
  127.                 "method": "PUT",
  128.                 "header": [
  129.                     {
  130.                         "key": "Content-Type",
  131.                         "name": "Content-Type",
  132.                         "type": "text",
  133.                         "value": "application/json"
  134.                     }
  135.                 ],
  136.                 "body": {
  137.                     "mode": "raw",
  138.                     "raw": "{\n    \"acl-service:acl-service\": [\n        {\n            \"ACL_Name\": \"myAcl\",\n            \"ACL_Direction\": \"in\",\n            \"devices\": [\n                {\n                    \"device_name\": \"c0\",\n                    \"interfaces\": [\n                        {\n                            \"interface_type\": \"GigabitEthernet\",\n                            \"interface_number\": \"1/1\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}"
  139.                 },
  140.                 "url": {
  141.                     "raw": "http://localhost:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=nso/yang-ext:mount/services/acl-service:acl-service=myAcl",
  142.                     "protocol": "http",
  143.                     "host": [
  144.                         "localhost"
  145.                     ],
  146.                     "port": "8888",
  147.                     "path": [
  148.                         "restconf",
  149.                         "data",
  150.                         "network-topology:network-topology",
  151.                         "topology=topology-netconf",
  152.                         "node=nso",
  153.                         "yang-ext:mount",
  154.                         "services",
  155.                         "acl-service:acl-service=myAcl"
  156.                     ]
  157.                 }
  158.             },
  159.             "response": []
  160.         },
  161.         {
  162.             "name": "GET ACL services",
  163.             "protocolProfileBehavior": {
  164.                 "disableBodyPruning": true
  165.             },
  166.             "request": {
  167.                 "auth": {
  168.                     "type": "basic",
  169.                     "basic": [
  170.                         {
  171.                             "key": "password",
  172.                             "value": "admin",
  173.                             "type": "string"
  174.                         },
  175.                         {
  176.                             "key": "username",
  177.                             "value": "admin",
  178.                             "type": "string"
  179.                         }
  180.                     ]
  181.                 },
  182.                 "method": "GET",
  183.                 "header": [
  184.                     {
  185.                         "key": "Content-Type",
  186.                         "name": "Content-Type",
  187.                         "type": "text",
  188.                         "value": "application/json"
  189.                     }
  190.                 ],
  191.                 "body": {
  192.                     "mode": "raw",
  193.                     "raw": ""
  194.                 },
  195.                 "url": {
  196.                     "raw": "http://localhost:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=nso/yang-ext:mount/services/acl-service:acl-service=myAcl",
  197.                     "protocol": "http",
  198.                     "host": [
  199.                         "localhost"
  200.                     ],
  201.                     "port": "8888",
  202.                     "path": [
  203.                         "restconf",
  204.                         "data",
  205.                         "network-topology:network-topology",
  206.                         "topology=topology-netconf",
  207.                         "node=nso",
  208.                         "yang-ext:mount",
  209.                         "services",
  210.                         "acl-service:acl-service=myAcl"
  211.                     ]
  212.                 }
  213.             },
  214.             "response": []
  215.         }
  216.     ],
  217.     "protocolProfileBehavior": {}
  218. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement