1
+ {
2
+ "info" : {
3
+ "_postman_id" : " d08565c9-e8fb-4ae4-83aa-16c798bec254" ,
4
+ "name" : " Application Transformer for VMware Tanzu" ,
5
+ "schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6
+ },
7
+ "item" : [
8
+ {
9
+ "name" : " Create Login Session" ,
10
+ "event" : [
11
+ {
12
+ "listen" : " test" ,
13
+ "script" : {
14
+ "exec" : [
15
+ " var jsonData = JSON.parse(responseBody);" ,
16
+ " // pm.globals.set(\" access_token\" , jsonData.access_token);" ,
17
+ " postman.setEnvironmentVariable(\" app_transformer_session_token\" , jsonData.token);"
18
+ ],
19
+ "type" : " text/javascript"
20
+ }
21
+ }
22
+ ],
23
+ "request" : {
24
+ "method" : " POST" ,
25
+ "header" : [
26
+ {
27
+ "key" : " Accept" ,
28
+ "value" : " application/json" ,
29
+ "type" : " text"
30
+ },
31
+ {
32
+ "key" : " Content-Type" ,
33
+ "value" : " application/json" ,
34
+ "type" : " text"
35
+ }
36
+ ],
37
+ "body" : {
38
+ "mode" : " raw" ,
39
+ "raw" : " {\n \" username\" : \" {{app_transformer_username}}\" ,\n \" password\" : \" {{app_transformer_password}}\"\n }"
40
+ },
41
+ "url" : {
42
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/session" ,
43
+ "protocol" : " https" ,
44
+ "host" : [
45
+ " {{app_transformer_fqdn}}"
46
+ ],
47
+ "path" : [
48
+ " discovery" ,
49
+ " session"
50
+ ]
51
+ }
52
+ },
53
+ "response" : []
54
+ },
55
+ {
56
+ "name" : " List all vCenter Servers" ,
57
+ "request" : {
58
+ "auth" : {
59
+ "type" : " bearer" ,
60
+ "bearer" : [
61
+ {
62
+ "key" : " token" ,
63
+ "value" : " {{app_transformer_session_token}}" ,
64
+ "type" : " string"
65
+ }
66
+ ]
67
+ },
68
+ "method" : " GET" ,
69
+ "header" : [
70
+ {
71
+ "key" : " Accept" ,
72
+ "value" : " application/json" ,
73
+ "type" : " text"
74
+ }
75
+ ],
76
+ "url" : {
77
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/vcenters" ,
78
+ "protocol" : " https" ,
79
+ "host" : [
80
+ " {{app_transformer_fqdn}}"
81
+ ],
82
+ "path" : [
83
+ " discovery" ,
84
+ " vcenters"
85
+ ]
86
+ }
87
+ },
88
+ "response" : []
89
+ },
90
+ {
91
+ "name" : " List all Credentials" ,
92
+ "request" : {
93
+ "auth" : {
94
+ "type" : " bearer" ,
95
+ "bearer" : [
96
+ {
97
+ "key" : " token" ,
98
+ "value" : " {{app_transformer_session_token}}" ,
99
+ "type" : " string"
100
+ }
101
+ ]
102
+ },
103
+ "method" : " GET" ,
104
+ "header" : [],
105
+ "url" : {
106
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/serviceaccounts" ,
107
+ "protocol" : " https" ,
108
+ "host" : [
109
+ " {{app_transformer_fqdn}}"
110
+ ],
111
+ "path" : [
112
+ " discovery" ,
113
+ " serviceaccounts"
114
+ ]
115
+ }
116
+ },
117
+ "response" : []
118
+ },
119
+ {
120
+ "name" : " Create a new Credential" ,
121
+ "request" : {
122
+ "auth" : {
123
+ "type" : " bearer" ,
124
+ "bearer" : [
125
+ {
126
+ "key" : " token" ,
127
+ "value" : " {{app_transformer_session_token}}" ,
128
+ "type" : " string"
129
+ }
130
+ ]
131
+ },
132
+ "method" : " POST" ,
133
+ "header" : [
134
+ {
135
+ "key" : " Content-Type" ,
136
+ "value" : " application/json" ,
137
+ "type" : " text"
138
+ },
139
+ {
140
+ "key" : " Accept" ,
141
+ "value" : " application/json" ,
142
+ "type" : " text"
143
+ }
144
+ ],
145
+ "body" : {
146
+ "mode" : " raw" ,
147
+ "raw" : " {\n \" alias\" : \" super-secure-password\" ,\n \" username\" : \" foo\" ,\n \" password\" : \" bar\"\n }"
148
+ },
149
+ "url" : {
150
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/serviceaccounts" ,
151
+ "protocol" : " https" ,
152
+ "host" : [
153
+ " {{app_transformer_fqdn}}"
154
+ ],
155
+ "path" : [
156
+ " discovery" ,
157
+ " serviceaccounts"
158
+ ]
159
+ }
160
+ },
161
+ "response" : []
162
+ },
163
+ {
164
+ "name" : " List all Virtual Machines" ,
165
+ "request" : {
166
+ "auth" : {
167
+ "type" : " bearer" ,
168
+ "bearer" : [
169
+ {
170
+ "key" : " token" ,
171
+ "value" : " {{app_transformer_session_token}}" ,
172
+ "type" : " string"
173
+ }
174
+ ]
175
+ },
176
+ "method" : " GET" ,
177
+ "header" : [],
178
+ "url" : {
179
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/virtualmachines" ,
180
+ "protocol" : " https" ,
181
+ "host" : [
182
+ " {{app_transformer_fqdn}}"
183
+ ],
184
+ "path" : [
185
+ " discovery" ,
186
+ " virtualmachines"
187
+ ]
188
+ }
189
+ },
190
+ "response" : []
191
+ },
192
+ {
193
+ "name" : " Associate credential with a Virtual Machine" ,
194
+ "request" : {
195
+ "auth" : {
196
+ "type" : " bearer" ,
197
+ "bearer" : [
198
+ {
199
+ "key" : " token" ,
200
+ "value" : " {{app_transformer_session_token}}" ,
201
+ "type" : " string"
202
+ }
203
+ ]
204
+ },
205
+ "method" : " POST" ,
206
+ "header" : [],
207
+ "url" : {
208
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/serviceaccounts//virtualmachines" ,
209
+ "protocol" : " https" ,
210
+ "host" : [
211
+ " {{app_transformer_fqdn}}"
212
+ ],
213
+ "path" : [
214
+ " discovery" ,
215
+ " serviceaccounts" ,
216
+ " " ,
217
+ " virtualmachines"
218
+ ]
219
+ }
220
+ },
221
+ "response" : []
222
+ },
223
+ {
224
+ "name" : " List all Applications" ,
225
+ "request" : {
226
+ "method" : " GET" ,
227
+ "header" : [],
228
+ "url" : {
229
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/applications" ,
230
+ "protocol" : " https" ,
231
+ "host" : [
232
+ " {{app_transformer_fqdn}}"
233
+ ],
234
+ "path" : [
235
+ " discovery" ,
236
+ " applications"
237
+ ]
238
+ }
239
+ },
240
+ "response" : []
241
+ },
242
+ {
243
+ "name" : " List all Components" ,
244
+ "request" : {
245
+ "auth" : {
246
+ "type" : " bearer" ,
247
+ "bearer" : [
248
+ {
249
+ "key" : " token" ,
250
+ "value" : " {{app_transformer_session_token}}" ,
251
+ "type" : " string"
252
+ }
253
+ ]
254
+ },
255
+ "method" : " GET" ,
256
+ "header" : [],
257
+ "url" : {
258
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/components" ,
259
+ "protocol" : " https" ,
260
+ "host" : [
261
+ " {{app_transformer_fqdn}}"
262
+ ],
263
+ "path" : [
264
+ " discovery" ,
265
+ " components"
266
+ ]
267
+ }
268
+ },
269
+ "response" : []
270
+ },
271
+ {
272
+ "name" : " List all Component Signatures" ,
273
+ "request" : {
274
+ "auth" : {
275
+ "type" : " bearer" ,
276
+ "bearer" : [
277
+ {
278
+ "key" : " token" ,
279
+ "value" : " {{app_transformer_session_token}}" ,
280
+ "type" : " string"
281
+ }
282
+ ]
283
+ },
284
+ "method" : " GET" ,
285
+ "header" : [],
286
+ "url" : {
287
+ "raw" : " https://{{app_transformer_fqdn}}/discovery/component-list" ,
288
+ "protocol" : " https" ,
289
+ "host" : [
290
+ " {{app_transformer_fqdn}}"
291
+ ],
292
+ "path" : [
293
+ " discovery" ,
294
+ " component-list"
295
+ ]
296
+ }
297
+ },
298
+ "response" : []
299
+ }
300
+ ]
301
+ }
0 commit comments