-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNetFoundryRunners.postman_collection.json
202 lines (202 loc) · 6.75 KB
/
NetFoundryRunners.postman_collection.json
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
{
"info": {
"_postman_id": "8bc6f500-fdbd-40e0-b7bf-7e67099fba4e",
"name": "NetFoundry Runners",
"description": "Create NetFoundry Network resources in bulk by parsing fields from a CSV file.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Service Runner",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\"attributes\": [\"{{attribute}}\"],\n\"clientHostName\": \"{{hostName}}\",\n\"clientPortRange\": \"{{port}}\",\n\"edgeRouterAttributes\": [],\n\"egressRouterId\": \"{{edgeRouterId}}\",\n\"encryptionRequired\": true,\n\"endpoints\": [\"{{endpointId}}\"],\n\"name\": \"{{serviceName}}\",\n\"networkId\": \"{{networkId}}\",\n\"serverHostName\": \"{{ipAddress}}\",\n\"serverPortRange\": \"{{port}}\",\n\"serverProtocol\": \"{{protocol}}\"\n}",
"options": {
"raw": {}
}
},
"url": {
"raw": "https://gateway.production.netfoundry.io/core/v2/services",
"protocol": "https",
"host": [
"gateway",
"production",
"netfoundry",
"io"
],
"path": [
"core",
"v2",
"services"
]
}
},
"response": [
{
"name": "The create request was successful and the resource has been added at the following location",
"originalRequest": {
"method": "POST",
"header": [
{
"description": {
"content": "Added as a part of security scheme: apikey",
"type": "text/plain"
},
"key": "zt-session",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"<string>\",\n \"encryptionRequired\": \"<boolean>\",\n \"terminatorStrategy\": \"<string>\",\n \"roleAttributes\": [\n \"<string>\",\n \"<string>\"\n ],\n \"configs\": [\n \"<string>\",\n \"<string>\"\n ],\n \"tags\": {}\n}"
},
"url": {
"raw": "{{baseUrl}}/services",
"host": [
"{{baseUrl}}"
],
"path": [
"services"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"meta\": {\n \"filterableFields\": [\n \"deserunt fugiat laborum dolor\",\n \"nost\"\n ],\n \"pagination\": {\n \"limit\": 54981584.37856513,\n \"offset\": 84137055.59609413,\n \"totalCount\": 58606483.93207896\n },\n \"apiEnrolmentVersion\": \"enim ei\",\n \"apiVersion\": \"do tempor\"\n },\n \"data\": {\n \"_links\": {},\n \"id\": \"deserunt nisi consectetur\"\n }\n}"
},
{
"name": "The currently supplied session does not have the correct access rights to request this resource",
"originalRequest": {
"method": "POST",
"header": [
{
"description": {
"content": "Added as a part of security scheme: apikey",
"type": "text/plain"
},
"key": "zt-session",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"<string>\",\n \"encryptionRequired\": \"<boolean>\",\n \"terminatorStrategy\": \"<string>\",\n \"roleAttributes\": [\n \"<string>\",\n \"<string>\"\n ],\n \"configs\": [\n \"<string>\",\n \"<string>\"\n ],\n \"tags\": {}\n}"
},
"url": {
"raw": "{{baseUrl}}/services",
"host": [
"{{baseUrl}}"
],
"path": [
"services"
]
}
},
"status": "Unauthorized",
"code": 401,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"error\": {\n \"args\": {\n \"urlVars\": {}\n },\n \"cause\": \"\",\n \"causeMessage\": \"\",\n \"code\": \"UNAUTHORIZED\",\n \"message\": \"The request could not be completed. The session is not authorized or the credentials are invalid\",\n \"requestId\": \"0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f\"\n },\n \"meta\": {\n \"apiEnrolmentVersion\": \"0.0.1\",\n \"apiVersion\": \"0.0.1\"\n }\n}"
},
{
"name": "The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information",
"originalRequest": {
"method": "POST",
"header": [
{
"description": {
"content": "Added as a part of security scheme: apikey",
"type": "text/plain"
},
"key": "zt-session",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"<string>\",\n \"encryptionRequired\": \"<boolean>\",\n \"terminatorStrategy\": \"<string>\",\n \"roleAttributes\": [\n \"<string>\",\n \"<string>\"\n ],\n \"configs\": [\n \"<string>\",\n \"<string>\"\n ],\n \"tags\": {}\n}"
},
"url": {
"raw": "{{baseUrl}}/services",
"host": [
"{{baseUrl}}"
],
"path": [
"services"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"error\": {\n \"args\": {\n \"urlVars\": {}\n },\n \"cause\": {\n \"field\": \"(root)\",\n \"type\": \"required\",\n \"value\": {\n \"fooField\": \"abc\",\n \"fooField2\": \"def\"\n },\n \"message\": \"(root): fooField3 is required\",\n \"details\": {\n \"context\": \"(root)\",\n \"field\": \"(root)\",\n \"property\": \"fooField3\"\n }\n },\n \"causeMessage\": \"schema validation failed\",\n \"code\": \"COULD_NOT_VALIDATE\",\n \"message\": \"The supplied request contains an invalid document\",\n \"requestId\": \"ac6766d6-3a09-44b3-8d8a-1b541d97fdd9\"\n },\n \"meta\": {\n \"apiEnrolmentVersion\": \"0.0.1\",\n \"apiVersion\": \"0.0.1\"\n }\n}"
}
]
}
],
"auth": {
"type": "bearer"
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "86f9f5fd-d0a4-4320-8e24-5d156ae8446d",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "00e26053-29e3-4262-8b06-bb54502ddc86",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}