Sample restconf calls using Google Postman with 2 different environments.
[packetcable.git] / packetcable-policy-server / doc / restconf-samples / ODL-PCMM.json.postman_collection
1 {
2         "id": "ea685ec8-aa6d-22e9-e501-b608a6705634",
3         "name": "ODL-PCMM",
4         "description": "Sample PCMM REST configuration calls.",
5         "order": [],
6         "folders": [
7                 {
8                         "id": "70229253-b083-d28b-aa49-5b4aa4a5f603",
9                         "name": "CCAP/CMTS",
10                         "description": "Sample PUT, GET, & DELETE of CMTS into ODL",
11                         "write": true,
12                         "order": [
13                                 "e54c5cfc-1b5d-498b-a341-00297488427b",
14                                 "81287e06-ee1c-1ab3-ac6c-a5c0e7ef304b",
15                                 "351b4a09-547a-bcca-7209-a9ce69e3c041",
16                                 "e72c8671-ea27-6bbe-800f-3e16d4af4e46",
17                                 "1f72bd2d-9ffc-da53-adad-2a664b9c30b2",
18                                 "a104537c-f394-388f-aa75-4bd5026b60d7"
19                         ],
20                         "collection_name": "ODL-PCMM",
21                         "collection_owner": 0,
22                         "collection_id": "ea685ec8-aa6d-22e9-e501-b608a6705634",
23                         "collection": "ea685ec8-aa6d-22e9-e501-b608a6705634",
24                         "owner": 0
25                 },
26                 {
27                         "id": "b49599b4-7506-16dd-6128-b57a71263441",
28                         "name": "Gates",
29                         "description": "Sample PUT, GET, DELETE for PCMM Gates",
30                         "write": true,
31                         "order": [
32                                 "2b0350e0-0c15-0546-6b67-51b5b75247b6",
33                                 "c6a3ffc4-b4dd-6b53-016c-41efaf165197",
34                                 "890d8808-c924-6ae4-7d4e-48ecffe18cbd",
35                                 "69836325-d4ed-671c-309c-a766df3307f7",
36                                 "69ae25d5-9c99-2a26-ab69-68b6f15cfa56",
37                                 "975c6bd4-76bc-8a72-c9a6-2f6a9306dd9f",
38                                 "338ae37d-fbe3-8c1f-f49e-7670c76c58fd",
39                                 "73c2e665-bd3e-8406-92a4-fecadf23b922",
40                                 "dcc4b130-7f5c-1247-678c-cb2f44ae4eaa"
41                         ],
42                         "collection_name": "ODL-PCMM",
43                         "collection_owner": 0,
44                         "collection_id": "ea685ec8-aa6d-22e9-e501-b608a6705634",
45                         "collection": "ea685ec8-aa6d-22e9-e501-b608a6705634",
46                         "owner": 0,
47                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634"
48                 }
49         ],
50         "timestamp": 1431957020452,
51         "synced": false,
52         "owner": 0,
53         "sharedWithTeam": false,
54         "subscribed": false,
55         "remoteLink": "",
56         "public": false,
57         "write": true,
58         "requests": [
59                 {
60                         "id": "1f72bd2d-9ffc-da53-adad-2a664b9c30b2",
61                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
62                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:ccap/ccaps/{{ccapId-1}}",
63                         "preRequestScript": "",
64                         "pathVariables": {},
65                         "method": "DELETE",
66                         "data": [],
67                         "dataMode": "params",
68                         "version": 2,
69                         "tests": "",
70                         "currentHelper": "normal",
71                         "helperAttributes": {},
72                         "time": 1431959545466,
73                         "name": "Delete CCAP 1",
74                         "description": "Deletes a specific managed CCAP/CMTS",
75                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
76                         "responses": [],
77                         "synced": false
78                 },
79                 {
80                         "id": "2b0350e0-0c15-0546-6b67-51b5b75247b6",
81                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
82                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-classifier}}/subs/{{subId-classifier}}/gates/{{gateId-classifier}}/",
83                         "preRequestScript": "",
84                         "pathVariables": {},
85                         "method": "PUT",
86                         "data": [],
87                         "dataMode": "raw",
88                         "version": 2,
89                         "tests": "",
90                         "currentHelper": "normal",
91                         "helperAttributes": {},
92                         "time": 1431970132797,
93                         "name": "Gate w/ classifier",
94                         "description": "PUT gate with standard classifier",
95                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
96                         "responses": [],
97                         "synced": false,
98                         "rawModeData": "{\n    \"gates\": [{\n        \"gateId\": \"{{gateId-classifier}}\",\n        \"gate-spec\": {\n            \"dscp-tos-overwrite\": \"0xa0\",\n            \"dscp-tos-mask\": \"0xff\"\n        },\n        \"traffic-profile\": {\n            \"service-class-name\": \"{{scnUp}}\"\n        },\n        \"classifier\": {\n            \"srcIp\": \"{{srcIp-1a}}\",\n            \"dstIp\": \"{{dstIp-1a}}\",\n            \"protocol\": \"0\",\n            \"srcPort\": \"{{srcPort-1a}}\",\n            \"dstPort\": \"{{dstPort-1a}}\",\n            \"tos-byte\": \"0xa0\",\n            \"tos-mask\": \"0xe0\"\n        }\n    }]\n}\n"
99                 },
100                 {
101                         "id": "338ae37d-fbe3-8c1f-f49e-7670c76c58fd",
102                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
103                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-ipv6}}/subs/{{subId-ipv6}}/gates/{{gateId-ipv6}}/",
104                         "preRequestScript": "",
105                         "pathVariables": {},
106                         "method": "PUT",
107                         "data": [],
108                         "dataMode": "raw",
109                         "version": 2,
110                         "tests": "",
111                         "currentHelper": "normal",
112                         "helperAttributes": {},
113                         "time": 1431970170183,
114                         "name": "Gate w/ IPv6 classifier",
115                         "description": "PUT gate with IPv6 classifier",
116                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
117                         "responses": [],
118                         "synced": false,
119                         "rawModeData": "{\n    \"gates\": [{\n        \"gateId\": \"{{gateId-ipv6}}\",\n        \"gate-spec\": {\n            \"dscp-tos-overwrite\": \"0xa0\",\n            \"dscp-tos-mask\": \"0xff\"\n        },\n        \"traffic-profile\": {\n            \"service-class-name\": \"{{scnDn}}\"\n        },\n        \"ipv6-classifier\": {\n            \"srcIp6\": \"{{srcIp-IPv6}}\",\n            \"dstIp6\": \"{{dstIp-IPv6}}\",\n            \"flow-label\": \"101\",\n            \"tc-low\": \"0xa0\",\n            \"tc-high\": \"0xc0\",\n            \"tc-mask\": \"0xe0\",\n            \"next-hdr\": \"256\",\n            \"srcPort-start\": \"{{srcPort-1a}}\",\n            \"srcPort-end\": \"{{srcPort-1b}}\",\n            \"dstPort-start\": \"{{dstPort-1a}}\",\n            \"dstPort-end\": \"{{dstPort-1b}}\"\n        }\n    }]\n}\n"
120                 },
121                 {
122                         "id": "351b4a09-547a-bcca-7209-a9ce69e3c041",
123                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
124                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:ccap/ccaps/{{ccapId-1}}",
125                         "preRequestScript": "",
126                         "pathVariables": {},
127                         "method": "PUT",
128                         "data": [],
129                         "dataMode": "raw",
130                         "version": 2,
131                         "tests": "",
132                         "currentHelper": "normal",
133                         "helperAttributes": {},
134                         "time": 1431959533066,
135                         "name": "Add CCAP 1",
136                         "description": "Adds a CCAP/CMTS to manage",
137                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
138                         "responses": [],
139                         "synced": false,
140                         "rawModeData": "{\n    \"ccaps\": [{\n        \"ccapId\": \"{{ccapId-1}}\",\n        \"amId\": {\n            \"am-tag\": \"0xcada\",\n            \"am-type\": \"1\"\n        },\n        \"connection\": {\n            \"ipAddress\": \"{{ccapIp-1}}\",\n            \"port\": \"{{ccapPort-1}}\"\n        },\n        \"subscriber-subnets\": [\n            \"10.32.110.1/24\"\n        ],\n        \"downstream-scns\": [\n            \"extrm_dn\"\n        ],\n        \"upstream-scns\": [\n            \"extrm_up\"\n        ]\n    }]\n}\n"
141                 },
142                 {
143                         "id": "69836325-d4ed-671c-309c-a766df3307f7",
144                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
145                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-ext}}/subs/{{subId-ext}}/gates/{{gateId-ext}}/",
146                         "preRequestScript": "",
147                         "pathVariables": {},
148                         "method": "PUT",
149                         "data": [],
150                         "dataMode": "raw",
151                         "version": 2,
152                         "tests": "",
153                         "currentHelper": "normal",
154                         "helperAttributes": {},
155                         "time": 1431970160007,
156                         "name": "Gate w/ ext classifier",
157                         "description": "PUT gate with ext classifier",
158                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
159                         "responses": [],
160                         "synced": false,
161                         "rawModeData": "{\n    \"gates\": [{\n        \"gateId\": \"{{gateId-ext}}\",\n        \"gate-spec\": {\n            \"dscp-tos-overwrite\": \"0xa0\",\n            \"dscp-tos-mask\": \"0xff\"\n        },\n        \"traffic-profile\": {\n            \"service-class-name\": \"{{scnDn}}\"\n        },\n        \"ext-classifier\": {\n            \"srcIp\": \"{{srcIp-1a}}\",\n            \"srcIpMask\": \"{{srcIpMask}}\",\n            \"dstIp\": \"{{dstIp-1a}}\",\n            \"dstIpMask\": \"{{dstIpMask}}\",\n            \"tos-byte\": \"0xa0\",\n            \"tos-mask\": \"0xe0\",\n            \"protocol\": \"0\",\n            \"srcPort-start\": \"{{srcPort-1a}}\",\n            \"srcPort-end\": \"{{srcPort-1b}}\",\n            \"dstPort-start\": \"{{dstPort-1a}}\",\n            \"dstPort-end\": \"{{dstPort-1b}}\"\n        }\n    }]\n}\n"
162                 },
163                 {
164                         "id": "69ae25d5-9c99-2a26-ab69-68b6f15cfa56",
165                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
166                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-ext}}/subs/{{subId-ext}}/gates/{{gateId-ext}}/",
167                         "preRequestScript": "",
168                         "pathVariables": {},
169                         "method": "GET",
170                         "data": [],
171                         "dataMode": "params",
172                         "version": 2,
173                         "tests": "",
174                         "currentHelper": "normal",
175                         "helperAttributes": {},
176                         "time": 1431968587699,
177                         "name": "Gate w/ ext classifier",
178                         "description": "Retrieves the gate with ext classifier.",
179                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
180                         "responses": [],
181                         "synced": false
182                 },
183                 {
184                         "id": "73c2e665-bd3e-8406-92a4-fecadf23b922",
185                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
186                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-ipv6}}/subs/{{subId-ipv6}}/gates/{{gateId-ipv6}}/",
187                         "preRequestScript": "",
188                         "pathVariables": {},
189                         "method": "GET",
190                         "data": [],
191                         "dataMode": "params",
192                         "version": 2,
193                         "tests": "",
194                         "currentHelper": "normal",
195                         "helperAttributes": {},
196                         "time": 1431968601897,
197                         "name": "Gate w/ IPv6 classifier",
198                         "description": "Retrieves the gate with IPv6 classifier.",
199                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
200                         "responses": [],
201                         "synced": false
202                 },
203                 {
204                         "id": "81287e06-ee1c-1ab3-ac6c-a5c0e7ef304b",
205                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
206                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:ccap",
207                         "preRequestScript": "",
208                         "pathVariables": {},
209                         "method": "DELETE",
210                         "data": [],
211                         "dataMode": "params",
212                         "version": 2,
213                         "tests": "",
214                         "currentHelper": "normal",
215                         "helperAttributes": {},
216                         "time": 1431959527893,
217                         "name": "Delete All CCAPs",
218                         "description": "Removes all managed CCAPs/CMTSs",
219                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
220                         "responses": [],
221                         "synced": false
222                 },
223                 {
224                         "id": "890d8808-c924-6ae4-7d4e-48ecffe18cbd",
225                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
226                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-classifier}}/subs/{{subId-classifier}}/gates/{{gateId-classifier}}/",
227                         "preRequestScript": "",
228                         "pathVariables": {},
229                         "method": "DELETE",
230                         "data": [],
231                         "dataMode": "params",
232                         "version": 2,
233                         "tests": "",
234                         "currentHelper": "normal",
235                         "helperAttributes": {},
236                         "time": 1431968580172,
237                         "name": "Gate w/ classifier",
238                         "description": "Delete QoS gate with classifier",
239                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
240                         "responses": [],
241                         "synced": false
242                 },
243                 {
244                         "id": "975c6bd4-76bc-8a72-c9a6-2f6a9306dd9f",
245                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
246                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-ext}}/subs/{{subId-ext}}/gates/{{gateId-ext}}/",
247                         "preRequestScript": "",
248                         "pathVariables": {},
249                         "method": "DELETE",
250                         "data": [],
251                         "dataMode": "params",
252                         "version": 2,
253                         "tests": "",
254                         "currentHelper": "normal",
255                         "helperAttributes": {},
256                         "time": 1431968592188,
257                         "name": "Gate w/ ext classifier",
258                         "description": "Delete QoS gate with ext classifier",
259                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
260                         "responses": [],
261                         "synced": false
262                 },
263                 {
264                         "id": "a104537c-f394-388f-aa75-4bd5026b60d7",
265                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
266                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:ccap",
267                         "preRequestScript": "",
268                         "pathVariables": {},
269                         "method": "PUT",
270                         "data": [],
271                         "dataMode": "raw",
272                         "version": 2,
273                         "tests": "",
274                         "currentHelper": "normal",
275                         "helperAttributes": {},
276                         "time": 1431959551170,
277                         "name": "PUT Multiple",
278                         "description": "Adds 2 CCAPs/CMTSs to manage",
279                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
280                         "responses": [],
281                         "synced": false,
282                         "rawModeData": "{ \"ccap\": {\n    \"ccaps\": [\n    {   \"ccapId\": \"{{ccapId-1}}\",\n        \"amId\": {\n            \"am-tag\": \"0xcada\",\n            \"am-type\": \"1\"\n        },\n        \"connection\": {\n            \"ipAddress\": \"{{ccapIp-1}}\",\n            \"port\": \"{{ccapPort-1}}\"\n        },\n        \"subscriber-subnets\": [\n            \"44.137.0.0/16\",\n            \"2001:4978:030d:1000:0:0:0:0/52\"\n        ],\n        \"downstream-scns\": [\n            \"ipvideo_dn\",\n            \"extrm_dn\",\n            \"SCNC\"\n        ],\n        \"upstream-scns\": [\n            \"SCNA\",\n            \"extrm_up\"\n        ]\n    },\n    {   \"ccapId\": \"{{ccapId-2}}\",\n        \"amId\": {\n            \"am-tag\": \"0xcada\",\n            \"am-type\": \"1\"\n        },\n        \"connection\": {\n            \"ipAddress\": \"{{ccapIp-2}}\",\n            \"port\": \"{{ccapPort-2}}\"\n        },\n        \"subscriber-subnets\": [\n            \"44.133.0.0/19\"\n        ],\n        \"downstream-scns\": [\n            \"ipvideo_dn\",\n            \"extrm_dn\",\n            \"SCNC\"\n        ],\n        \"upstream-scns\": [\n            \"SCNA\",\n            \"extrm_up\"\n        ]\n    }]\n}}\n"
283                 },
284                 {
285                         "id": "c6a3ffc4-b4dd-6b53-016c-41efaf165197",
286                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
287                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-classifier}}/subs/{{subId-classifier}}/gates/{{gateId-classifier}}/",
288                         "preRequestScript": "",
289                         "pathVariables": {},
290                         "method": "GET",
291                         "data": [],
292                         "dataMode": "params",
293                         "version": 2,
294                         "tests": "",
295                         "currentHelper": "normal",
296                         "helperAttributes": {},
297                         "time": 1431968576112,
298                         "name": "Gate w/ classifier",
299                         "description": "Retrieves the gate with classifier.",
300                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
301                         "responses": [],
302                         "synced": false
303                 },
304                 {
305                         "id": "dcc4b130-7f5c-1247-678c-cb2f44ae4eaa",
306                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
307                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:qos/apps/{{appId-ipv6}}/subs/{{subId-ipv6}}/gates/{{gateId-ipv6}}/",
308                         "preRequestScript": "",
309                         "pathVariables": {},
310                         "method": "DELETE",
311                         "data": [],
312                         "dataMode": "params",
313                         "version": 2,
314                         "tests": "",
315                         "currentHelper": "normal",
316                         "helperAttributes": {},
317                         "time": 1431968605935,
318                         "name": "Gate w/ IPv6 classifier",
319                         "description": "Delete QoS gate with IPv6 classifier",
320                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
321                         "responses": [],
322                         "synced": false
323                 },
324                 {
325                         "id": "e54c5cfc-1b5d-498b-a341-00297488427b",
326                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
327                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:ccap",
328                         "preRequestScript": "",
329                         "pathVariables": {},
330                         "method": "GET",
331                         "data": [],
332                         "dataMode": "params",
333                         "version": 2,
334                         "tests": "",
335                         "currentHelper": "normal",
336                         "helperAttributes": {},
337                         "time": 1431959521698,
338                         "name": "Get All CCAPs",
339                         "description": "Retrieves all managed CCAPs/CMTSs",
340                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
341                         "responses": [],
342                         "synced": false
343                 },
344                 {
345                         "id": "e72c8671-ea27-6bbe-800f-3e16d4af4e46",
346                         "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
347                         "url": "http://{{odlHost}}:{{odlPort}}/restconf/config/packetcable:ccap/ccaps/{{ccapId-1}}",
348                         "preRequestScript": "",
349                         "pathVariables": {},
350                         "method": "GET",
351                         "data": [],
352                         "dataMode": "params",
353                         "version": 2,
354                         "tests": "",
355                         "currentHelper": "normal",
356                         "helperAttributes": {},
357                         "time": 1431959538008,
358                         "name": "Get CCAP 1",
359                         "description": "Retrieves a specific managed CCAP/CMTS",
360                         "collectionId": "ea685ec8-aa6d-22e9-e501-b608a6705634",
361                         "responses": [],
362                         "synced": false
363                 }
364         ]
365 }