summaryrefslogtreecommitdiffstats
path: root/vpp-management/vpp_management_postman_collection.json
blob: 80adc729293f9c7aa8deae896ef96d5509f97f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
	"info": {
		"_postman_id": "b638a073-6954-5c89-320a-7105437dae94",
		"name": "Vpp management Collection",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"_postman_id": "b7c33751-f435-48d2-89f2-ad5d7d729c0d",
			"name": "RPCs",
			"description": "",
			"item": [
				{
					"_postman_id": "985509b9-7469-418d-8887-2d844c873927",
					"name": "show version",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Basic YWRtaW46YWRtaW4="
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"input\" :\n  {\n     \"cmd\" : \"show version\"\n  }\n}"
						},
						"url": {
							"raw": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8183",
							"path": [
								"restconf",
								"operations",
								"vpp-management:cli-inband"
							]
						},
						"description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of show version."
					},
					"response": []
				},
				{
					"_postman_id": "f95256a3-90f7-4ff1-98df-b6a9462e259a",
					"name": "show interfaces",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Basic YWRtaW46YWRtaW4="
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"input\" :\n  {\n     \"cmd\" : \"show int\"\n  }\n}"
						},
						"url": {
							"raw": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8183",
							"path": [
								"restconf",
								"operations",
								"vpp-management:cli-inband"
							]
						},
						"description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of show int."
					},
					"response": []
				},
				{
					"_postman_id": "f571c7b6-704d-4e8c-a747-5eb914bc3f17",
					"name": "create loopback interface",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Basic YWRtaW46YWRtaW4="
							},
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"input\" :\n  {\n     \"cmd\" : \"create loopback interface\"\n  }\n}"
						},
						"url": {
							"raw": "http://localhost:8183/restconf/operations/vpp-management:cli-inband",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8183",
							"path": [
								"restconf",
								"operations",
								"vpp-management:cli-inband"
							]
						},
						"description": "The cli-inband rpc provides support for CLI commands.\nHere is equivalent of create loopback interface"
					},
					"response": []
				}
			]
		},
		{
			"_postman_id": "10c5f1c9-156a-4838-946f-16532f62cd90",
			"name": "Read vpp-state - oper",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Basic YWRtaW46YWRtaW4="
					},
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"testInterface\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"iana-if-type:ethernetCsmacd\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"ietf-ip:ipv4\": {\r\n                    \"enabled\": \"true\",\r\n                    \"mtu\": \"1500\",\r\n                    \"address\": [\r\n                        {\r\n                            \"ip\": \"1.2.3.0\",\r\n                            \"netmask\": \"255.255.255.0\"\r\n                        }\r\n                    ]\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
				},
				"url": {
					"raw": "http://localhost:8183/restconf/operational/vpp-management:vpp-state",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "8183",
					"path": [
						"restconf",
						"operational",
						"vpp-management:vpp-state"
					]
				}
			},
			"response": []
		}
	]
}