aboutsummaryrefslogtreecommitdiffstats
path: root/test/postman/12_NS_Instance.postman_collection.json
blob: 78a1798b8f5ba053b477d5d9591b4cd6783b526e (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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
	"info": {
		"_postman_id": "305afb68-6632-49a7-8a6d-9d9d57699f6e",
		"name": "Ns_Instance",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "ns_instance",
			"item": [
				{
					"name": "ns_create",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": " application/json",
								"type": "text"
							},
							{
								"key": "accept",
								"value": " application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"context\": {\r\n        \"globalCustomerId\": \"global-customer-id-test1\",\r\n        \"serviceType\": \"service-type-test1\"\r\n    },\r\n    \"csarId\": \"d5d678dc-80ef-461e-8630-d105f43b0a18\",\r\n    \"nsName\": \"ns_vsn\",\r\n    \"description\": \"description\"\r\n}"
						},
						"url": {
							"raw": "http://172.30.3.104:30280/api/nslcm/v1/ns",
							"protocol": "http",
							"host": [
								"172",
								"30",
								"3",
								"104"
							],
							"port": "30280",
							"path": [
								"api",
								"nslcm",
								"v1",
								"ns"
							]
						}
					},
					"response": []
				},
				{
					"name": "ns_inst",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": " application/json",
								"type": "text"
							},
							{
								"key": "accept",
								"value": " application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"additionalParamForNs\": {\r\n        \"sdnControllerId\": \"2\"\r\n    },\r\n    \"locationConstraints\": [{\r\n        \"vnfProfileId\": \"45711f40-3f43-415b-bb45-46e5c6940735\",\r\n        \"locationConstraints\": {\r\n            \"vimId\": \"CPE-DC_RegionOne\"\r\n        }\r\n    }]\r\n}\r\n"
						},
						"url": {
							"raw": "http://172.30.3.104:30280/api/nslcm/v1/ns/f0b4c09f-c653-438a-b091-5218b0f806ec/instantiate",
							"protocol": "http",
							"host": [
								"172",
								"30",
								"3",
								"104"
							],
							"port": "30280",
							"path": [
								"api",
								"nslcm",
								"v1",
								"ns",
								"f0b4c09f-c653-438a-b091-5218b0f806ec",
								"instantiate"
							]
						}
					},
					"response": []
				},
				{
					"name": "ns_terminate",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": " application/json",
								"type": "text"
							},
							{
								"key": "accept",
								"value": " application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n   \"gracefulTerminationTimeout\": 600, \r\n   \"terminationType\": \"FORCEFUL\"\r\n}"
						},
						"url": {
							"raw": "http://172.30.3.104:30280/api/nslcm/v1/ns/f0b4c09f-c653-438a-b091-5218b0f806ec/terminate",
							"protocol": "http",
							"host": [
								"172",
								"30",
								"3",
								"104"
							],
							"port": "30280",
							"path": [
								"api",
								"nslcm",
								"v1",
								"ns",
								"f0b4c09f-c653-438a-b091-5218b0f806ec",
								"terminate"
							]
						},
						"description": "generate:\"jobId\": \"NS-terminate_ns-f0b4c09f-c653-438a-b091-5218b0f806ec-6f12ca34-f7a2-11e8-8c7e-02bf457e51f9\"\n\ninstid:f0b4c09f-c653-438a-b091-5218b0f806ec"
					},
					"response": []
				},
				{
					"name": "ns_delete",
					"request": {
						"method": "DELETE",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://172.30.3.104:30280/api/nslcm/v1/ns/f0b4c09f-c653-438a-b091-5218b0f806ec",
							"protocol": "http",
							"host": [
								"172",
								"30",
								"3",
								"104"
							],
							"port": "30280",
							"path": [
								"api",
								"nslcm",
								"v1",
								"ns",
								"f0b4c09f-c653-438a-b091-5218b0f806ec"
							]
						},
						"description": "ns/instid:f0b4c09f-c653-438a-b091-5218b0f806ec\nInstid after ns, fill in according to the actual situation"
					},
					"response": []
				},
				{
					"name": "ns_heal",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "content-type",
								"value": " application/json",
								"type": "text"
							},
							{
								"key": "accept",
								"value": " application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"vnfInstanceId\": \"044b705c-e44d-4733-ab64-987f46d9b567\",\r\n    \"cause\": \"restartvm\",\r\n    \"additionalParams\": {\r\n      \"action\": \"restartvm\",\r\n      \"actionvminfo\": {\r\n        \"vmid\": \"1623cd25-ae6f-4880-8132-15914367e47b\",\r\n        \"vduid\": \"\",\r\n        \"vmname\": \"1623cd25-ae6f-4880-8132-15914367e47b\"\r\n      }\r\n    }"
						},
						"url": {
							"raw": "http://172.30.3.104:30280/api/nslcm/v1/ns/5443e9f8-7993-479d-8d7a-34e422eabc8f/heal",
							"protocol": "http",
							"host": [
								"172",
								"30",
								"3",
								"104"
							],
							"port": "30280",
							"path": [
								"api",
								"nslcm",
								"v1",
								"ns",
								"5443e9f8-7993-479d-8d7a-34e422eabc8f",
								"heal"
							]
						}
					},
					"response": []
				}
			],
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"id": "debc308f-9109-41b1-adf3-9d288b2061e6",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"id": "0a37542a-0a02-4e84-970a-f8f32b0bf713",
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		}
	]
}