PANTHEONtech

[SDN-C] NSO Requests - Postman Collection

Jun 1st, 2020
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 14.55 KB | None | 0 0
  1. {
  2.     "info": {
  3.         "_postman_id": "23eafd20-2178-4954-9581-79e7b2c26f7e",
  4.         "name": "SDN-C NSO requests",
  5.         "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  6.     },
  7.     "item": [
  8.         {
  9.             "name": "GET config topology netconf",
  10.             "protocolProfileBehavior": {
  11.                 "disableBodyPruning": true
  12.             },
  13.             "request": {
  14.                 "auth": {
  15.                     "type": "noauth"
  16.                 },
  17.                 "method": "GET",
  18.                 "header": [
  19.                     {
  20.                         "key": "Content-Type",
  21.                         "name": "Content-Type",
  22.                         "type": "text",
  23.                         "value": "application/json"
  24.                     },
  25.                     {
  26.                         "key": "Accept",
  27.                         "type": "text",
  28.                         "value": "application/json"
  29.                     },
  30.                     {
  31.                         "key": "X-FromAppId",
  32.                         "type": "text",
  33.                         "value": "csit-sdnc",
  34.                         "disabled": true
  35.                     },
  36.                     {
  37.                         "key": "X-TransactionId",
  38.                         "type": "text",
  39.                         "value": "csit-sdnc",
  40.                         "disabled": true
  41.                     },
  42.                     {
  43.                         "key": "Authorization",
  44.                         "type": "text",
  45.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==",
  46.                         "disabled": true
  47.                     }
  48.                 ],
  49.                 "body": {
  50.                     "mode": "raw",
  51.                     "raw": ""
  52.                 },
  53.                 "url": {
  54.                     "raw": "http://localhost:8282/restconf/config/network-topology:network-topology/topology/topology-netconf",
  55.                     "protocol": "http",
  56.                     "host": [
  57.                         "localhost"
  58.                     ],
  59.                     "port": "8282",
  60.                     "path": [
  61.                         "restconf",
  62.                         "config",
  63.                         "network-topology:network-topology",
  64.                         "topology",
  65.                         "topology-netconf"
  66.                     ]
  67.                 }
  68.             },
  69.             "response": []
  70.         },
  71.         {
  72.             "name": "GET oper topology netconf",
  73.             "protocolProfileBehavior": {
  74.                 "disableBodyPruning": true
  75.             },
  76.             "request": {
  77.                 "auth": {
  78.                     "type": "noauth"
  79.                 },
  80.                 "method": "GET",
  81.                 "header": [
  82.                     {
  83.                         "key": "Content-Type",
  84.                         "name": "Content-Type",
  85.                         "type": "text",
  86.                         "value": "application/json"
  87.                     },
  88.                     {
  89.                         "key": "Accept",
  90.                         "type": "text",
  91.                         "value": "application/json"
  92.                     },
  93.                     {
  94.                         "key": "X-FromAppId",
  95.                         "type": "text",
  96.                         "value": "csit-sdnc",
  97.                         "disabled": true
  98.                     },
  99.                     {
  100.                         "key": "X-TransactionId",
  101.                         "type": "text",
  102.                         "value": "csit-sdnc",
  103.                         "disabled": true
  104.                     },
  105.                     {
  106.                         "key": "Authorization",
  107.                         "type": "text",
  108.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
  109.                     }
  110.                 ],
  111.                 "body": {
  112.                     "mode": "raw",
  113.                     "raw": ""
  114.                 },
  115.                 "url": {
  116.                     "raw": "http://localhost:8282/restconf/operational/network-topology:network-topology/topology/topology-netconf",
  117.                     "protocol": "http",
  118.                     "host": [
  119.                         "localhost"
  120.                     ],
  121.                     "port": "8282",
  122.                     "path": [
  123.                         "restconf",
  124.                         "operational",
  125.                         "network-topology:network-topology",
  126.                         "topology",
  127.                         "topology-netconf"
  128.                     ]
  129.                 }
  130.             },
  131.             "response": []
  132.         },
  133.         {
  134.             "name": "PUT connect NSO",
  135.             "request": {
  136.                 "auth": {
  137.                     "type": "noauth"
  138.                 },
  139.                 "method": "PUT",
  140.                 "header": [
  141.                     {
  142.                         "key": "Content-Type",
  143.                         "name": "Content-Type",
  144.                         "type": "text",
  145.                         "value": "application/json"
  146.                     },
  147.                     {
  148.                         "key": "Accept",
  149.                         "type": "text",
  150.                         "value": "application/json"
  151.                     },
  152.                     {
  153.                         "key": "X-FromAppId",
  154.                         "type": "text",
  155.                         "value": "csit-sdnc",
  156.                         "disabled": true
  157.                     },
  158.                     {
  159.                         "key": "X-TransactionId",
  160.                         "type": "text",
  161.                         "value": "csit-sdnc",
  162.                         "disabled": true
  163.                     },
  164.                     {
  165.                         "key": "Authorization",
  166.                         "type": "text",
  167.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
  168.                     }
  169.                 ],
  170.                 "body": {
  171.                     "mode": "raw",
  172.                     "raw": " {\n    \"netconf-topology:node\" :[ {\n      \"node-id\": \"nso\",\n      \"host\": \"172.18.0.1\",\n      \"port\": 2022,\n      \"username\": \"admin\",\n      \"password\": \"admin\",\n      \"tcp-only\": false,\n      \"keepalive-delay\": 0,\n      \"netconf-node-configuration:schemaless\": false\n      }\n    ]\n  }"
  173.                 },
  174.                 "url": {
  175.                     "raw": "http://localhost:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/nso",
  176.                     "protocol": "http",
  177.                     "host": [
  178.                         "localhost"
  179.                     ],
  180.                     "port": "8282",
  181.                     "path": [
  182.                         "restconf",
  183.                         "config",
  184.                         "network-topology:network-topology",
  185.                         "topology",
  186.                         "topology-netconf",
  187.                         "node",
  188.                         "nso"
  189.                     ]
  190.                 }
  191.             },
  192.             "response": []
  193.         },
  194.         {
  195.             "name": "DELETE disconnect NSO",
  196.             "request": {
  197.                 "auth": {
  198.                     "type": "noauth"
  199.                 },
  200.                 "method": "DELETE",
  201.                 "header": [
  202.                     {
  203.                         "key": "Content-Type",
  204.                         "name": "Content-Type",
  205.                         "type": "text",
  206.                         "value": "application/json"
  207.                     },
  208.                     {
  209.                         "key": "Accept",
  210.                         "type": "text",
  211.                         "value": "application/json"
  212.                     },
  213.                     {
  214.                         "key": "X-FromAppId",
  215.                         "type": "text",
  216.                         "value": "csit-sdnc",
  217.                         "disabled": true
  218.                     },
  219.                     {
  220.                         "key": "X-TransactionId",
  221.                         "type": "text",
  222.                         "value": "csit-sdnc",
  223.                         "disabled": true
  224.                     },
  225.                     {
  226.                         "key": "Authorization",
  227.                         "type": "text",
  228.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
  229.                     }
  230.                 ],
  231.                 "body": {
  232.                     "mode": "raw",
  233.                     "raw": ""
  234.                 },
  235.                 "url": {
  236.                     "raw": "http://localhost:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/nso",
  237.                     "protocol": "http",
  238.                     "host": [
  239.                         "localhost"
  240.                     ],
  241.                     "port": "8282",
  242.                     "path": [
  243.                         "restconf",
  244.                         "config",
  245.                         "network-topology:network-topology",
  246.                         "topology",
  247.                         "topology-netconf",
  248.                         "node",
  249.                         "nso"
  250.                     ]
  251.                 }
  252.             },
  253.             "response": []
  254.         },
  255.         {
  256.             "name": "PUT activate ACL service",
  257.             "request": {
  258.                 "auth": {
  259.                     "type": "noauth"
  260.                 },
  261.                 "method": "PUT",
  262.                 "header": [
  263.                     {
  264.                         "key": "Content-Type",
  265.                         "name": "Content-Type",
  266.                         "type": "text",
  267.                         "value": "application/json"
  268.                     },
  269.                     {
  270.                         "key": "Accept",
  271.                         "type": "text",
  272.                         "value": "application/json"
  273.                     },
  274.                     {
  275.                         "key": "X-FromAppId",
  276.                         "type": "text",
  277.                         "value": "csit-sdnc",
  278.                         "disabled": true
  279.                     },
  280.                     {
  281.                         "key": "X-TransactionId",
  282.                         "type": "text",
  283.                         "value": "csit-sdnc",
  284.                         "disabled": true
  285.                     },
  286.                     {
  287.                         "key": "Authorization",
  288.                         "type": "text",
  289.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
  290.                     }
  291.                 ],
  292.                 "body": {
  293.                     "mode": "raw",
  294.                     "raw": "{\n    \"acl-service:acl-service\": [\n        {\n        \t\"ACL_Direction\": \"in\",\n            \"ACL_Name\": \"aclFromPostman\",\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}"
  295.                 },
  296.                 "url": {
  297.                     "raw": "http://localhost:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/nso/yang-ext:mount/tailf-ncs:services/acl-service:acl-service/aclFromPostman",
  298.                     "protocol": "http",
  299.                     "host": [
  300.                         "localhost"
  301.                     ],
  302.                     "port": "8282",
  303.                     "path": [
  304.                         "restconf",
  305.                         "config",
  306.                         "network-topology:network-topology",
  307.                         "topology",
  308.                         "topology-netconf",
  309.                         "node",
  310.                         "nso",
  311.                         "yang-ext:mount",
  312.                         "tailf-ncs:services",
  313.                         "acl-service:acl-service",
  314.                         "aclFromPostman"
  315.                     ]
  316.                 }
  317.             },
  318.             "response": []
  319.         },
  320.         {
  321.             "name": "GET oper list of services",
  322.             "protocolProfileBehavior": {
  323.                 "disableBodyPruning": true
  324.             },
  325.             "request": {
  326.                 "auth": {
  327.                     "type": "noauth"
  328.                 },
  329.                 "method": "GET",
  330.                 "header": [
  331.                     {
  332.                         "key": "Content-Type",
  333.                         "name": "Content-Type",
  334.                         "type": "text",
  335.                         "value": "application/json"
  336.                     },
  337.                     {
  338.                         "key": "Accept",
  339.                         "type": "text",
  340.                         "value": "application/json"
  341.                     },
  342.                     {
  343.                         "key": "X-FromAppId",
  344.                         "type": "text",
  345.                         "value": "csit-sdnc",
  346.                         "disabled": true
  347.                     },
  348.                     {
  349.                         "key": "X-TransactionId",
  350.                         "type": "text",
  351.                         "value": "csit-sdnc",
  352.                         "disabled": true
  353.                     },
  354.                     {
  355.                         "key": "Authorization",
  356.                         "type": "text",
  357.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
  358.                     }
  359.                 ],
  360.                 "body": {
  361.                     "mode": "raw",
  362.                     "raw": " {\n    \"netconf-topology:node\" :[ {\n      \"node-id\": \"nso\",\n      \"host\": \"127.0.0.1\",\n      \"port\": 2022,\n      \"username\": \"admin\",\n      \"password\": \"admin\",\n      \"tcp-only\": false,\n      \"keepalive-delay\": 0,\n      \"netconf-node-configuration:schemaless\": false\n      }\n    ]\n  }"
  363.                 },
  364.                 "url": {
  365.                     "raw": "http://localhost:8282/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/nso/yang-ext:mount/tailf-ncs:services",
  366.                     "protocol": "http",
  367.                     "host": [
  368.                         "localhost"
  369.                     ],
  370.                     "port": "8282",
  371.                     "path": [
  372.                         "restconf",
  373.                         "operational",
  374.                         "network-topology:network-topology",
  375.                         "topology",
  376.                         "topology-netconf",
  377.                         "node",
  378.                         "nso",
  379.                         "yang-ext:mount",
  380.                         "tailf-ncs:services"
  381.                     ]
  382.                 }
  383.             },
  384.             "response": []
  385.         },
  386.         {
  387.             "name": "POST DG connect NSO",
  388.             "request": {
  389.                 "auth": {
  390.                     "type": "noauth"
  391.                 },
  392.                 "method": "POST",
  393.                 "header": [
  394.                     {
  395.                         "key": "Content-Type",
  396.                         "name": "Content-Type",
  397.                         "type": "text",
  398.                         "value": "application/json"
  399.                     },
  400.                     {
  401.                         "key": "Accept",
  402.                         "type": "text",
  403.                         "value": "application/json"
  404.                     },
  405.                     {
  406.                         "key": "X-FromAppId",
  407.                         "type": "text",
  408.                         "value": "csit-sdnc",
  409.                         "disabled": true
  410.                     },
  411.                     {
  412.                         "key": "X-TransactionId",
  413.                         "type": "text",
  414.                         "value": "csit-sdnc",
  415.                         "disabled": true
  416.                     },
  417.                     {
  418.                         "key": "Authorization",
  419.                         "type": "text",
  420.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
  421.                     }
  422.                 ],
  423.                 "body": {
  424.                     "mode": "raw",
  425.                     "raw": "{\n  \"input\": {\n    \"module-name\": \"NSO-operations\",\n    \"rpc-name\": \"connectNSO\",\n    \"mode\": \"sync\",\n    \"sli-parameter\": [\n    \t{\n\t\t    \"parameter-name\": \"nodeId\",\n\t\t    \"string-value\": \"nso\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"nodeAddress\",\n\t\t    \"string-value\": \"172.18.0.1\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"nodePort\",\n\t\t    \"string-value\": \"2022\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"nodeUser\",\n\t\t    \"string-value\": \"admin\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"nodePassword\",\n\t\t    \"string-value\": \"admin\"\n\t\t}\n    ]\n  }\n}"
  426.                 },
  427.                 "url": {
  428.                     "raw": "http://localhost:8282/restconf/operations/SLI-API:execute-graph",
  429.                     "protocol": "http",
  430.                     "host": [
  431.                         "localhost"
  432.                     ],
  433.                     "port": "8282",
  434.                     "path": [
  435.                         "restconf",
  436.                         "operations",
  437.                         "SLI-API:execute-graph"
  438.                     ]
  439.                 }
  440.             },
  441.             "response": []
  442.         },
  443.         {
  444.             "name": "POST DG get NSO",
  445.             "request": {
  446.                 "auth": {
  447.                     "type": "noauth"
  448.                 },
  449.                 "method": "POST",
  450.                 "header": [
  451.                     {
  452.                         "key": "Content-Type",
  453.                         "name": "Content-Type",
  454.                         "type": "text",
  455.                         "value": "application/json"
  456.                     },
  457.                     {
  458.                         "key": "Accept",
  459.                         "type": "text",
  460.                         "value": "application/json"
  461.                     },
  462.                     {
  463.                         "key": "X-FromAppId",
  464.                         "type": "text",
  465.                         "value": "csit-sdnc",
  466.                         "disabled": true
  467.                     },
  468.                     {
  469.                         "key": "X-TransactionId",
  470.                         "type": "text",
  471.                         "value": "csit-sdnc",
  472.                         "disabled": true
  473.                     },
  474.                     {
  475.                         "key": "Authorization",
  476.                         "type": "text",
  477.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
  478.                     }
  479.                 ],
  480.                 "body": {
  481.                     "mode": "raw",
  482.                     "raw": "{\n  \"input\": {\n    \"module-name\": \"NSO-operations\",\n    \"rpc-name\": \"getNSO\",\n    \"mode\": \"sync\",\n    \"sli-parameter\": [\n    \t{\n\t\t    \"parameter-name\": \"nodeId\",\n\t\t    \"string-value\": \"nso\"\n\t\t}\n    ]\n  }\n}"
  483.                 },
  484.                 "url": {
  485.                     "raw": "http://localhost:8282/restconf/operations/SLI-API:execute-graph",
  486.                     "protocol": "http",
  487.                     "host": [
  488.                         "localhost"
  489.                     ],
  490.                     "port": "8282",
  491.                     "path": [
  492.                         "restconf",
  493.                         "operations",
  494.                         "SLI-API:execute-graph"
  495.                     ]
  496.                 }
  497.             },
  498.             "response": []
  499.         },
  500.         {
  501.             "name": "POST DG activate ACL service",
  502.             "request": {
  503.                 "auth": {
  504.                     "type": "noauth"
  505.                 },
  506.                 "method": "POST",
  507.                 "header": [
  508.                     {
  509.                         "key": "Content-Type",
  510.                         "name": "Content-Type",
  511.                         "type": "text",
  512.                         "value": "application/json"
  513.                     },
  514.                     {
  515.                         "key": "Accept",
  516.                         "type": "text",
  517.                         "value": "application/json"
  518.                     },
  519.                     {
  520.                         "key": "X-FromAppId",
  521.                         "type": "text",
  522.                         "value": "csit-sdnc",
  523.                         "disabled": true
  524.                     },
  525.                     {
  526.                         "key": "X-TransactionId",
  527.                         "type": "text",
  528.                         "value": "csit-sdnc",
  529.                         "disabled": true
  530.                     },
  531.                     {
  532.                         "key": "Authorization",
  533.                         "type": "text",
  534.                         "value": "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
  535.                     }
  536.                 ],
  537.                 "body": {
  538.                     "mode": "raw",
  539.                     "raw": "{\n  \"input\": {\n    \"module-name\": \"NSO-operations\",\n    \"rpc-name\": \"activateACL\",\n    \"mode\": \"sync\",\n    \"sli-parameter\": [\n    \t{\n\t\t    \"parameter-name\": \"nodeId\",\n\t\t    \"string-value\": \"nso\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"aclName\",\n\t\t    \"string-value\": \"aclFromDG\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"aclDirection\",\n\t\t    \"string-value\": \"in\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"aclDeviceName\",\n\t\t    \"string-value\": \"c1\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"aclInterfaceType\",\n\t\t    \"string-value\": \"GigabitEthernet\"\n\t\t},\n\t\t{\n\t\t    \"parameter-name\": \"aclInterfaceNumber\",\n\t\t    \"string-value\": \"1/1\"\n\t\t}\n    ]\n  }\n}"
  540.                 },
  541.                 "url": {
  542.                     "raw": "http://localhost:8282/restconf/operations/SLI-API:execute-graph",
  543.                     "protocol": "http",
  544.                     "host": [
  545.                         "localhost"
  546.                     ],
  547.                     "port": "8282",
  548.                     "path": [
  549.                         "restconf",
  550.                         "operations",
  551.                         "SLI-API:execute-graph"
  552.                     ]
  553.                 }
  554.             },
  555.             "response": []
  556.         }
  557.     ],
  558.     "protocolProfileBehavior": {}
  559. }
Add Comment
Please, Sign In to add comment