1
|
---
|
2
|
http_interactions:
|
3
|
- request:
|
4
|
method: get
|
5
|
uri: https://admin:changeme@satlap.example.com/api/status
|
6
|
body:
|
7
|
encoding: US-ASCII
|
8
|
string: ''
|
9
|
headers:
|
10
|
Accept-Encoding:
|
11
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
Accept:
|
13
|
- "*/*"
|
14
|
User-Agent:
|
15
|
- Ruby
|
16
|
Host:
|
17
|
- satlap.example.com
|
18
|
response:
|
19
|
status:
|
20
|
code: 200
|
21
|
message: OK
|
22
|
headers:
|
23
|
Date:
|
24
|
- Tue, 13 Dec 2016 14:48:23 GMT
|
25
|
Server:
|
26
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
27
|
X-Frame-Options:
|
28
|
- SAMEORIGIN
|
29
|
X-Xss-Protection:
|
30
|
- 1; mode=block
|
31
|
X-Content-Type-Options:
|
32
|
- nosniff
|
33
|
Foreman-Version:
|
34
|
- 1.11.0.54
|
35
|
Foreman-Api-Version:
|
36
|
- '2'
|
37
|
Apipie-Checksum:
|
38
|
- e1df2e8d43e22495b02a53b48e3b5298
|
39
|
Cache-Control:
|
40
|
- max-age=0, private, must-revalidate
|
41
|
X-Request-Id:
|
42
|
- eca88e64-d3ea-4800-a1d3-ef0f90a6e63c
|
43
|
X-Runtime:
|
44
|
- '0.039973'
|
45
|
X-Powered-By:
|
46
|
- Phusion Passenger 4.0.18
|
47
|
Set-Cookie:
|
48
|
- _session_id=86b86ff9ef4b9bda24b3e21025a5d895; path=/; secure; HttpOnly
|
49
|
Etag:
|
50
|
- '"8e3341d0a4cc328651f7391aed11fef8"'
|
51
|
Status:
|
52
|
- 200 OK
|
53
|
Content-Length:
|
54
|
- '66'
|
55
|
Content-Type:
|
56
|
- application/json; charset=utf-8
|
57
|
body:
|
58
|
encoding: UTF-8
|
59
|
string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
|
60
|
http_version:
|
61
|
recorded_at: Tue, 13 Dec 2016 14:48:21 GMT
|
62
|
- request:
|
63
|
method: get
|
64
|
uri: https://admin:changeme@satlap.example.com/api/v2/plugins
|
65
|
body:
|
66
|
encoding: US-ASCII
|
67
|
string: ''
|
68
|
headers:
|
69
|
Accept-Encoding:
|
70
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
71
|
Accept:
|
72
|
- "*/*"
|
73
|
User-Agent:
|
74
|
- Ruby
|
75
|
Host:
|
76
|
- satlap.example.com
|
77
|
response:
|
78
|
status:
|
79
|
code: 200
|
80
|
message: OK
|
81
|
headers:
|
82
|
Date:
|
83
|
- Tue, 13 Dec 2016 14:48:23 GMT
|
84
|
Server:
|
85
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
86
|
X-Frame-Options:
|
87
|
- SAMEORIGIN
|
88
|
X-Xss-Protection:
|
89
|
- 1; mode=block
|
90
|
X-Content-Type-Options:
|
91
|
- nosniff
|
92
|
Foreman-Version:
|
93
|
- 1.11.0.54
|
94
|
Foreman-Api-Version:
|
95
|
- '2'
|
96
|
Apipie-Checksum:
|
97
|
- e1df2e8d43e22495b02a53b48e3b5298
|
98
|
Cache-Control:
|
99
|
- max-age=0, private, must-revalidate
|
100
|
X-Request-Id:
|
101
|
- f956c6c5-3a58-4a51-83a2-60f4d91cb173
|
102
|
X-Runtime:
|
103
|
- '0.034884'
|
104
|
X-Powered-By:
|
105
|
- Phusion Passenger 4.0.18
|
106
|
Set-Cookie:
|
107
|
- _session_id=ba213cdede883405dab444504d77f649; path=/; secure; HttpOnly
|
108
|
Etag:
|
109
|
- '"077fb42a553a8a1a1bbf6262a2cc79ec-gzip"'
|
110
|
Status:
|
111
|
- 200 OK
|
112
|
Vary:
|
113
|
- Accept-Encoding
|
114
|
Content-Length:
|
115
|
- '1338'
|
116
|
Content-Type:
|
117
|
- application/json; charset=utf-8
|
118
|
body:
|
119
|
encoding: ASCII-8BIT
|
120
|
string: !binary |-
|
121
|
ewogICJ0b3RhbCI6IDEwLAogICJzdWJ0b3RhbCI6IDEwLAogICJwYWdlIjog
|
122
|
MSwKICAicGVyX3BhZ2UiOiAyMCwKICAic2VhcmNoIjogbnVsbCwKICAic29y
|
123
|
dCI6IHsKICAgICJieSI6IG51bGwsCiAgICAib3JkZXIiOiBudWxsCiAgfSwK
|
124
|
ICAicmVzdWx0cyI6IFt7ImlkIjoiZm9yZW1hbi10YXNrcyIsIm5hbWUiOiJm
|
125
|
b3JlbWFuLXRhc2tzIiwiYXV0aG9yIjoiSXZhbiBOZcSNYXMiLCJkZXNjcmlw
|
126
|
dGlvbiI6IlRoZSBnb2FsIG9mIHRoaXMgcGx1Z2luIGlzIHRvIHVuaWZ5IHRo
|
127
|
ZSB3YXkgb2Ygc2hvd2luZyB0YXNrIHN0YXR1c2VzIGFjcm9zcyB0aGUgRm9y
|
128
|
ZW1hbiBpbnN0YW5jZS5cbkl0IGRlZmluZXMgVGFzayBtb2RlbCBmb3Iga2Vl
|
129
|
cGluZyB0aGUgaW5mb3JtYXRpb24gYWJvdXQgdGhlIHRhc2tzIGFuZCBMb2Nr
|
130
|
IGZvciBhc3NpZ25pbmcgdGhlIHRhc2tzXG50byByZXNvdXJjZXMuIFRoZSBs
|
131
|
b2NraW5nIGFsbG93cyBkZWFsaW5nIHdpdGggcHJldmVudGluZyBtdWx0aXBs
|
132
|
ZSBjb2xsaWRpbmcgdGFza3MgdG8gYmUgcnVuIG9uIHRoZVxuc2FtZSByZXNv
|
133
|
dXJjZS4gSXQgYWxzbyBvcHRpb25hbGx5IHByb3ZpZGVzIER5bmZsb3cgaW5m
|
134
|
cmFzdHJ1Y3R1cmUgZm9yIHVzaW5nIGl0IGZvciBtYW5hZ2luZyB0aGUgdGFz
|
135
|
a3MuXG4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9m
|
136
|
b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC45In0seyJpZCI6ImZv
|
137
|
cmVtYW5fYm9vdGRpc2siLCJuYW1lIjoiZm9yZW1hbl9ib290ZGlzayIsImF1
|
138
|
dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJkZXNjcmlwdGlvbiI6IlBsdWdpbiBm
|
139
|
b3IgRm9yZW1hbiB0aGF0IGNyZWF0ZXMgaVBYRS1iYXNlZCBib290IGRpc2tz
|
140
|
IHRvIHByb3Zpc2lvbiBob3N0cyB3aXRob3V0IHRoZSBuZWVkIGZvciBQWEUg
|
141
|
aW5mcmFzdHJ1Y3R1cmUuIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
|
142
|
Zm9yZW1hbi9mb3JlbWFuX2Jvb3RkaXNrIiwidmVyc2lvbiI6IjYuMS4wLjMi
|
143
|
fSx7ImlkIjoiZm9yZW1hbl9kaXNjb3ZlcnkiLCJuYW1lIjoiZm9yZW1hbl9k
|
144
|
aXNjb3ZlcnkiLCJhdXRob3IiOiJBbW9zIEJlbmFyaSxCcnlhbiBLZWFybmV5
|
145
|
LENoYWlybWFuVHViZUFtcCxEYW5pZWwgTG9iYXRvIEdhcmPDrWEsRG9taW5p
|
146
|
YyBDbGVhbCxFcmljIEQuIEhlbG1zLEZyYW5rIFdhbGwsR3JlZyBTdXRjbGlm
|
147
|
ZmUsSW1yaSBadmlrLEpvc2VwaCBNaXRjaGVsbCBNYWdlbixMdWthcyBaYXBs
|
148
|
ZXRhbCxMdWvDocWhIFphcGxldGFsLE1hcmVrIEh1bGFuLE1hcnRpbiBCYcSN
|
149
|
b3Zza8O9LE1hdHQgSmFydmlzLE1pY2hhZWwgTW9sbCxOaWNrLE9oYWQgTGV2
|
150
|
eSxPcmkgUmFiaW4sUGV0ciBDaGFsdXBhLFBoaXJpbmNlIFBoaWxpcCxTY3Vi
|
151
|
YWZsb3lkLFNobG9taSBaYWRvayxTdGVwaGVuIEJlbmphbWluLFlhbm4gQ8Op
|
152
|
emFyZCIsImRlc2NyaXB0aW9uIjoiTWFhUyBEaXNjb3ZlcnkgUGx1Z2luIGVu
|
153
|
Z2luZSBmb3IgRm9yZW1hbiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
|
154
|
ZWZvcmVtYW4vZm9yZW1hbl9kaXNjb3ZlcnkiLCJ2ZXJzaW9uIjoiNS4wLjAu
|
155
|
OSJ9LHsiaWQiOiJmb3JlbWFuX2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2Rv
|
156
|
Y2tlciIsImF1dGhvciI6IkRhbmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwi
|
157
|
ZGVzY3JpcHRpb24iOiJQcm92aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29u
|
158
|
dGFpbmVycyBhbmQgaW1hZ2VzIGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRw
|
159
|
Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVy
|
160
|
c2lvbiI6IjIuMC4xLjExIn0seyJpZCI6ImZvcmVtYW5faG9va3MiLCJuYW1l
|
161
|
IjoiZm9yZW1hbl9ob29rcyIsImF1dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJk
|
162
|
ZXNjcmlwdGlvbiI6IlBsdWdpbiBlbmdpbmUgZm9yIEZvcmVtYW4gdGhhdCBl
|
163
|
bmFibGVzIHJ1bm5pbmcgY3VzdG9tIGhvb2sgc2NyaXB0cyBvbiBGb3JlbWFu
|
164
|
IGV2ZW50cyIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4v
|
165
|
Zm9yZW1hbl9ob29rcyIsInZlcnNpb24iOiIwLjMuMTEifSx7ImlkIjoiZm9y
|
166
|
ZW1hbl9vcGVuc2NhcCIsIm5hbWUiOiJmb3JlbWFuX29wZW5zY2FwIiwiYXV0
|
167
|
aG9yIjoixaBpbW9uIEx1a2HFocOtayxTaGxvbWkgWmFkb2ssTWFyZWsgSHVs
|
168
|
YW4sT25kcmVqIFByYXphayIsImRlc2NyaXB0aW9uIjoiRm9yZW1hbiBwbHVn
|
169
|
LWluIGZvciBtYW5hZ2luZyBzZWN1cml0eSBjb21wbGlhbmNlIHJlcG9ydHMi
|
170
|
LCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vT3BlblNDQVAvZm9yZW1hbl9v
|
171
|
cGVuc2NhcCIsInZlcnNpb24iOiIwLjUuMy4xOCJ9LHsiaWQiOiJmb3JlbWFu
|
172
|
X3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1hbl9yZW1vdGVfZXhl
|
173
|
Y3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUgRXhlY3V0aW9uIHRl
|
174
|
YW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5naW5nIHJlbW90ZSBl
|
175
|
eGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRpbmcgdGhlIGNvbmZp
|
176
|
ZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCByZW1vdGUgbWFuYWdl
|
177
|
bWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBzOi8vZ2l0aHViLmNv
|
178
|
bS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsInZlcnNp
|
179
|
b24iOiIwLjMuMC4xMiJ9LHsiaWQiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0
|
180
|
ZSIsIm5hbWUiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsImF1dGhvciI6
|
181
|
IkFsb24gR29sZGJvaW0sIFNoaW1vbiBTdGVpbiIsImRlc2NyaXB0aW9uIjoi
|
182
|
VGhpcyBpcyBhIHBsdWdpbiB0aGF0IGVuYWJsZXMgYnVpbGRpbmcgYSB0aGVt
|
183
|
ZSBmb3IgRm9yZW1hbi4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vYWxv
|
184
|
bmdvbGRib2ltL2ZvcmVtYW5fdGhlbWVfc2F0ZWxsaXRlIiwidmVyc2lvbiI6
|
185
|
IjAuMS4zMyJ9LHsiaWQiOiJrYXRlbGxvIiwibmFtZSI6ImthdGVsbG8iLCJh
|
186
|
dXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNvbnRlbnQgYW5kIFN1YnNj
|
187
|
cmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3IgRm9yZW1hbiIsInVybCI6
|
188
|
Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJzaW9uIjoiMy4wLjAuODIi
|
189
|
fSx7ImlkIjoicmVkaGF0X2FjY2VzcyIsIm5hbWUiOiJyZWRoYXRfYWNjZXNz
|
190
|
IiwiYXV0aG9yIjoiTGluZGFuaSBQaGlyaSIsImRlc2NyaXB0aW9uIjoiVGhp
|
191
|
cyBwbHVnaW4gYWRkcyBSZWQgSGF0IEFjY2VzcyBrbm93bGVkZ2UgYmFzZSBz
|
192
|
ZWFyY2gsIGNhc2UgbWFuYWdlbWVudCBhbmQgZGlhZ25vc3RpY3MgdG8gRm9y
|
193
|
ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
|
194
|
ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
|
195
|
http_version:
|
196
|
recorded_at: Tue, 13 Dec 2016 14:48:21 GMT
|
197
|
- request:
|
198
|
method: get
|
199
|
uri: https://admin:changeme@satlap.example.com/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
|
200
|
body:
|
201
|
encoding: US-ASCII
|
202
|
string: ''
|
203
|
headers:
|
204
|
Accept:
|
205
|
- application/json;version=2
|
206
|
Accept-Encoding:
|
207
|
- gzip, deflate
|
208
|
User-Agent:
|
209
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
210
|
Content-Type:
|
211
|
- application/json
|
212
|
Accept-Language:
|
213
|
- en
|
214
|
Host:
|
215
|
- satlap.example.com
|
216
|
response:
|
217
|
status:
|
218
|
code: 200
|
219
|
message: OK
|
220
|
headers:
|
221
|
Date:
|
222
|
- Tue, 13 Dec 2016 14:48:23 GMT
|
223
|
Server:
|
224
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
225
|
X-Frame-Options:
|
226
|
- SAMEORIGIN
|
227
|
X-Xss-Protection:
|
228
|
- 1; mode=block
|
229
|
X-Content-Type-Options:
|
230
|
- nosniff
|
231
|
Foreman-Version:
|
232
|
- 1.11.0.54
|
233
|
Foreman-Api-Version:
|
234
|
- '2'
|
235
|
Apipie-Checksum:
|
236
|
- e1df2e8d43e22495b02a53b48e3b5298
|
237
|
Cache-Control:
|
238
|
- max-age=0, private, must-revalidate
|
239
|
X-Request-Id:
|
240
|
- 422cb238-46c2-49d2-8bdb-4cfff83026e9
|
241
|
X-Runtime:
|
242
|
- '0.036717'
|
243
|
X-Powered-By:
|
244
|
- Phusion Passenger 4.0.18
|
245
|
Set-Cookie:
|
246
|
- _session_id=b0f89652c87ccf6322e60ea7fd53c453; path=/; secure; HttpOnly
|
247
|
Etag:
|
248
|
- '"679e32140c09b4b1376234e361ab87b0-gzip"'
|
249
|
Status:
|
250
|
- 200 OK
|
251
|
Vary:
|
252
|
- Accept-Encoding
|
253
|
Content-Length:
|
254
|
- '388'
|
255
|
Content-Type:
|
256
|
- application/json; charset=utf-8
|
257
|
body:
|
258
|
encoding: ASCII-8BIT
|
259
|
string: |
|
260
|
{
|
261
|
"total": 2,
|
262
|
"subtotal": 1,
|
263
|
"page": 1,
|
264
|
"per_page": 999999,
|
265
|
"search": "name=\"Test Corporation\"",
|
266
|
"sort": {
|
267
|
"by": null,
|
268
|
"order": null
|
269
|
},
|
270
|
"results": [{"label":"testcorp","created_at":"2016-12-13 10:58:26 UTC","updated_at":"2016-12-13 14:47:54 UTC","id":8,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
|
271
|
}
|
272
|
http_version:
|
273
|
recorded_at: Tue, 13 Dec 2016 14:48:21 GMT
|
274
|
- request:
|
275
|
method: get
|
276
|
uri: https://admin:changeme@satlap.example.com/api/organizations/8/hosts?per_page=1
|
277
|
body:
|
278
|
encoding: US-ASCII
|
279
|
string: ''
|
280
|
headers:
|
281
|
Accept:
|
282
|
- application/json;version=2
|
283
|
Accept-Encoding:
|
284
|
- gzip, deflate
|
285
|
User-Agent:
|
286
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
287
|
Content-Type:
|
288
|
- application/json
|
289
|
Accept-Language:
|
290
|
- en
|
291
|
Host:
|
292
|
- satlap.example.com
|
293
|
response:
|
294
|
status:
|
295
|
code: 200
|
296
|
message: OK
|
297
|
headers:
|
298
|
Date:
|
299
|
- Tue, 13 Dec 2016 14:48:23 GMT
|
300
|
Server:
|
301
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
302
|
X-Frame-Options:
|
303
|
- SAMEORIGIN
|
304
|
X-Xss-Protection:
|
305
|
- 1; mode=block
|
306
|
X-Content-Type-Options:
|
307
|
- nosniff
|
308
|
Foreman-Version:
|
309
|
- 1.11.0.54
|
310
|
Foreman-Api-Version:
|
311
|
- '2'
|
312
|
Apipie-Checksum:
|
313
|
- e1df2e8d43e22495b02a53b48e3b5298
|
314
|
Cache-Control:
|
315
|
- max-age=0, private, must-revalidate
|
316
|
X-Request-Id:
|
317
|
- 38eab7a3-c5bf-41a6-b932-0578013b222d
|
318
|
X-Runtime:
|
319
|
- '0.129062'
|
320
|
X-Powered-By:
|
321
|
- Phusion Passenger 4.0.18
|
322
|
Set-Cookie:
|
323
|
- _session_id=8355c8adc689a68e6b0f0ab8714acdc2; path=/; secure; HttpOnly
|
324
|
Etag:
|
325
|
- '"0f540321225c4933feb172b951b61400-gzip"'
|
326
|
Status:
|
327
|
- 200 OK
|
328
|
Vary:
|
329
|
- Accept-Encoding
|
330
|
Content-Length:
|
331
|
- '2293'
|
332
|
Content-Type:
|
333
|
- application/json; charset=utf-8
|
334
|
body:
|
335
|
encoding: ASCII-8BIT
|
336
|
string: |
|
337
|
{
|
338
|
"total": 2,
|
339
|
"subtotal": 2,
|
340
|
"page": 1,
|
341
|
"per_page": 1,
|
342
|
"search": null,
|
343
|
"sort": {
|
344
|
"by": null,
|
345
|
"order": null
|
346
|
},
|
347
|
"results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13 11:01:00 UTC","updated_at":"2016-12-13 11:49:06 UTC","last_compile":"2016-12-13 11:01:02 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13 11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 11:01:01 UTC"},"content_host_id":5}]
|
348
|
}
|
349
|
http_version:
|
350
|
recorded_at: Tue, 13 Dec 2016 14:48:21 GMT
|
351
|
- request:
|
352
|
method: get
|
353
|
uri: https://admin:changeme@satlap.example.com/api/organizations/8/hosts?page=1&per_page=20
|
354
|
body:
|
355
|
encoding: US-ASCII
|
356
|
string: ''
|
357
|
headers:
|
358
|
Accept:
|
359
|
- application/json;version=2
|
360
|
Accept-Encoding:
|
361
|
- gzip, deflate
|
362
|
User-Agent:
|
363
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
364
|
Content-Type:
|
365
|
- application/json
|
366
|
Accept-Language:
|
367
|
- en
|
368
|
Host:
|
369
|
- satlap.example.com
|
370
|
response:
|
371
|
status:
|
372
|
code: 200
|
373
|
message: OK
|
374
|
headers:
|
375
|
Date:
|
376
|
- Tue, 13 Dec 2016 14:48:23 GMT
|
377
|
Server:
|
378
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
379
|
X-Frame-Options:
|
380
|
- SAMEORIGIN
|
381
|
X-Xss-Protection:
|
382
|
- 1; mode=block
|
383
|
X-Content-Type-Options:
|
384
|
- nosniff
|
385
|
Foreman-Version:
|
386
|
- 1.11.0.54
|
387
|
Foreman-Api-Version:
|
388
|
- '2'
|
389
|
Apipie-Checksum:
|
390
|
- e1df2e8d43e22495b02a53b48e3b5298
|
391
|
Cache-Control:
|
392
|
- max-age=0, private, must-revalidate
|
393
|
X-Request-Id:
|
394
|
- a9b5a235-cc23-480a-853a-0eff28044917
|
395
|
X-Runtime:
|
396
|
- '0.158959'
|
397
|
X-Powered-By:
|
398
|
- Phusion Passenger 4.0.18
|
399
|
Set-Cookie:
|
400
|
- _session_id=94fd65d21d5c732f079050cd39b497ba; path=/; secure; HttpOnly
|
401
|
Etag:
|
402
|
- '"0093e4891c5402618c30013556e3debc-gzip"'
|
403
|
Status:
|
404
|
- 200 OK
|
405
|
Vary:
|
406
|
- Accept-Encoding
|
407
|
Content-Length:
|
408
|
- '4426'
|
409
|
Content-Type:
|
410
|
- application/json; charset=utf-8
|
411
|
body:
|
412
|
encoding: ASCII-8BIT
|
413
|
string: |
|
414
|
{
|
415
|
"total": 2,
|
416
|
"subtotal": 2,
|
417
|
"page": 1,
|
418
|
"per_page": 20,
|
419
|
"search": null,
|
420
|
"sort": {
|
421
|
"by": null,
|
422
|
"order": null
|
423
|
},
|
424
|
"results": [{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13 11:01:00 UTC","updated_at":"2016-12-13 11:49:06 UTC","last_compile":"2016-12-13 11:01:02 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13 11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 11:01:01 UTC"},"content_host_id":5},{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-13 10:58:55 UTC","updated_at":"2016-12-13 11:48:59 UTC","last_compile":"2016-12-13 10:58:57 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could not calculate errata status, ensure host is registered and katello-agent is installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":4,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","content_view_id":2,"content_view_name":"Default Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0}},"subscription_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","last_checkin":"2016-12-13 10:58:55 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13 10:58:56 UTC"},"content_host_id":4}]
|
425
|
}
|
426
|
http_version:
|
427
|
recorded_at: Tue, 13 Dec 2016 14:48:21 GMT
|
428
|
- request:
|
429
|
method: get
|
430
|
uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/environments?per_page=999999
|
431
|
body:
|
432
|
encoding: US-ASCII
|
433
|
string: ''
|
434
|
headers:
|
435
|
Accept:
|
436
|
- application/json;version=2
|
437
|
Accept-Encoding:
|
438
|
- gzip, deflate
|
439
|
User-Agent:
|
440
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
441
|
Content-Type:
|
442
|
- application/json
|
443
|
Accept-Language:
|
444
|
- en
|
445
|
Host:
|
446
|
- satlap.example.com
|
447
|
response:
|
448
|
status:
|
449
|
code: 200
|
450
|
message: OK
|
451
|
headers:
|
452
|
Date:
|
453
|
- Tue, 13 Dec 2016 14:48:24 GMT
|
454
|
Server:
|
455
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
456
|
X-Frame-Options:
|
457
|
- SAMEORIGIN
|
458
|
X-Xss-Protection:
|
459
|
- 1; mode=block
|
460
|
X-Content-Type-Options:
|
461
|
- nosniff
|
462
|
Foreman-Version:
|
463
|
- 1.11.0.54
|
464
|
Foreman-Api-Version:
|
465
|
- '2'
|
466
|
Apipie-Checksum:
|
467
|
- e1df2e8d43e22495b02a53b48e3b5298
|
468
|
Cache-Control:
|
469
|
- max-age=0, private, must-revalidate
|
470
|
X-Request-Id:
|
471
|
- a777d841-a0fd-4fbc-b3ea-df9dacc887a8
|
472
|
X-Runtime:
|
473
|
- '0.129666'
|
474
|
X-Powered-By:
|
475
|
- Phusion Passenger 4.0.18
|
476
|
Set-Cookie:
|
477
|
- _session_id=1dfb859bcbc7311bcaa0f914672521e5; path=/; secure; HttpOnly
|
478
|
Etag:
|
479
|
- '"e887f85e97779657bd7cf336d1f5761c-gzip"'
|
480
|
Status:
|
481
|
- 200 OK
|
482
|
Vary:
|
483
|
- Accept-Encoding
|
484
|
Content-Length:
|
485
|
- '3019'
|
486
|
Content-Type:
|
487
|
- application/json; charset=utf-8
|
488
|
body:
|
489
|
encoding: ASCII-8BIT
|
490
|
string: '{"total":5,"subtotal":5,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"library":false,"id":4,"name":"Test","label":"Test","description":"Test,
|
491
|
manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
|
492
|
10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Development","id":3},"successor":{"name":"Production","id":5},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":5,"name":"Production","label":"Production","description":"Production,
|
493
|
manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
|
494
|
10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Test","id":4},"successor":{"name":"Archive","id":6},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":true,"id":2,"name":"Library","label":"Library","description":null,"organization":{"name":"Test
|
495
|
Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:26
|
496
|
UTC","updated_at":"2016-12-13 10:58:26 UTC","prior":null,"successor":null,"counts":{"content_hosts":2,"content_views":1,"packages":0,"puppet_modules":0,"errata":{"security":0,"bugfix":0,"enhancement":0,"total":0},"yum_repositories":0,"docker_repositories":0,"ostree_repositories":0,"products":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":3,"name":"Development","label":"Development","description":"Development,
|
497
|
automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
|
498
|
10:59:04 UTC","updated_at":"2016-12-13 10:59:04 UTC","prior":{"name":"Library","id":2},"successor":{"name":"Test","id":4},"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":false,"promote_or_remove_content_views_to_environments":true}},{"library":false,"id":6,"name":"Archive","label":"Archive","description":"Archive,
|
499
|
no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-12-13
|
500
|
10:59:05 UTC","updated_at":"2016-12-13 10:59:05 UTC","prior":{"name":"Production","id":5},"successor":null,"counts":{"content_hosts":0,"content_views":0},"permissions":{"view_lifecycle_environments":true,"edit_lifecycle_environments":true,"destroy_lifecycle_environments":true,"promote_or_remove_content_views_to_environments":true}}]}
|
501
|
|
502
|
'
|
503
|
http_version:
|
504
|
recorded_at: Tue, 13 Dec 2016 14:48:21 GMT
|
505
|
- request:
|
506
|
method: get
|
507
|
uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/content_views?per_page=999999
|
508
|
body:
|
509
|
encoding: US-ASCII
|
510
|
string: ''
|
511
|
headers:
|
512
|
Accept:
|
513
|
- application/json;version=2
|
514
|
Accept-Encoding:
|
515
|
- gzip, deflate
|
516
|
User-Agent:
|
517
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
518
|
Content-Type:
|
519
|
- application/json
|
520
|
Accept-Language:
|
521
|
- en
|
522
|
Host:
|
523
|
- satlap.example.com
|
524
|
response:
|
525
|
status:
|
526
|
code: 200
|
527
|
message: OK
|
528
|
headers:
|
529
|
Date:
|
530
|
- Tue, 13 Dec 2016 14:48:24 GMT
|
531
|
Server:
|
532
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
533
|
X-Frame-Options:
|
534
|
- SAMEORIGIN
|
535
|
X-Xss-Protection:
|
536
|
- 1; mode=block
|
537
|
X-Content-Type-Options:
|
538
|
- nosniff
|
539
|
Foreman-Version:
|
540
|
- 1.11.0.54
|
541
|
Foreman-Api-Version:
|
542
|
- '2'
|
543
|
Apipie-Checksum:
|
544
|
- e1df2e8d43e22495b02a53b48e3b5298
|
545
|
Cache-Control:
|
546
|
- max-age=0, private, must-revalidate
|
547
|
X-Request-Id:
|
548
|
- a639e223-dfc1-418f-b500-faae36dfbdec
|
549
|
X-Runtime:
|
550
|
- '0.061547'
|
551
|
X-Powered-By:
|
552
|
- Phusion Passenger 4.0.18
|
553
|
Set-Cookie:
|
554
|
- _session_id=7ffefa71eaa50d476a8a3168a12bfae5; path=/; secure; HttpOnly
|
555
|
Etag:
|
556
|
- '"24d3d45f9a0cda80146879509dfd209e-gzip"'
|
557
|
Status:
|
558
|
- 200 OK
|
559
|
Vary:
|
560
|
- Accept-Encoding
|
561
|
Content-Length:
|
562
|
- '1804'
|
563
|
Content-Type:
|
564
|
- application/json; charset=utf-8
|
565
|
body:
|
566
|
encoding: ASCII-8BIT
|
567
|
string: '{"total":2,"subtotal":2,"page":1,"per_page":"999999","error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"composite":false,"repository_ids":[],"component_ids":[],"default":false,"next_version":2,"id":3,"name":"Test
|
568
|
Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test
|
569
|
Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:58
|
570
|
UTC","updated_at":"2016-12-13 10:58:59 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":3,"version":"1.0","published":"2016-12-13
|
571
|
10:58:59 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-12-13
|
572
|
10:58:59 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}},{"composite":false,"repository_ids":[],"component_ids":[],"default":true,"next_version":1,"id":2,"name":"Default
|
573
|
Organization View","label":"e1fa1d00-5399-4ce9-9219-1b9433e76baa","description":null,"organization":{"name":"Test
|
574
|
Corporation","label":"testcorp","id":8},"created_at":"2016-12-13 10:58:26
|
575
|
UTC","updated_at":"2016-12-13 10:58:26 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":2,"version":"1.0","published":"2016-12-13
|
576
|
10:58:26 UTC","environment_ids":[2]}],"components":[],"activation_keys":[{"id":2,"name":"testakey"},{"id":3,"name":"testakeyitemized"}],"last_published":"2016-12-13
|
577
|
10:58:26 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]}
|
578
|
|
579
|
'
|
580
|
http_version:
|
581
|
recorded_at: Tue, 13 Dec 2016 14:48:21 GMT
|
582
|
- request:
|
583
|
method: put
|
584
|
uri: https://admin:changeme@satlap.example.com/api/hosts/4
|
585
|
body:
|
586
|
encoding: UTF-8
|
587
|
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
|
588
|
Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}'
|
589
|
headers:
|
590
|
Accept:
|
591
|
- application/json;version=2
|
592
|
Accept-Encoding:
|
593
|
- gzip, deflate
|
594
|
User-Agent:
|
595
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
596
|
Content-Type:
|
597
|
- application/json
|
598
|
Accept-Language:
|
599
|
- en
|
600
|
Content-Length:
|
601
|
- '271'
|
602
|
Host:
|
603
|
- satlap.example.com
|
604
|
response:
|
605
|
status:
|
606
|
code: 200
|
607
|
message: OK
|
608
|
headers:
|
609
|
Date:
|
610
|
- Tue, 13 Dec 2016 14:48:24 GMT
|
611
|
Server:
|
612
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
613
|
X-Frame-Options:
|
614
|
- SAMEORIGIN
|
615
|
X-Xss-Protection:
|
616
|
- 1; mode=block
|
617
|
X-Content-Type-Options:
|
618
|
- nosniff
|
619
|
Foreman-Version:
|
620
|
- 1.11.0.54
|
621
|
Foreman-Api-Version:
|
622
|
- '2'
|
623
|
Apipie-Checksum:
|
624
|
- e1df2e8d43e22495b02a53b48e3b5298
|
625
|
Cache-Control:
|
626
|
- max-age=0, private, must-revalidate
|
627
|
X-Request-Id:
|
628
|
- 5263ecc3-e8e5-475e-99d7-74e254041205
|
629
|
X-Runtime:
|
630
|
- '0.604199'
|
631
|
X-Powered-By:
|
632
|
- Phusion Passenger 4.0.18
|
633
|
Set-Cookie:
|
634
|
- _session_id=967ce503b768c3af4061d9d959b812d9; path=/; secure; HttpOnly
|
635
|
- request_method=PUT; path=/
|
636
|
Etag:
|
637
|
- '"6450bb45f7cdc8ae0fdc6a0fb74f6bd7-gzip"'
|
638
|
Status:
|
639
|
- 200 OK
|
640
|
Vary:
|
641
|
- Accept-Encoding
|
642
|
Content-Length:
|
643
|
- '3820'
|
644
|
Content-Type:
|
645
|
- application/json; charset=utf-8
|
646
|
body:
|
647
|
encoding: ASCII-8BIT
|
648
|
string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-13
|
649
|
10:58:55 UTC","updated_at":"2016-12-13 11:48:59 UTC","last_compile":"2016-12-13
|
650
|
10:58:57 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test
|
651
|
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
|
652
|
not calculate errata status, ensure host is registered and katello-agent is
|
653
|
installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":4,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","content_view_id":2,"content_view_name":"Default
|
654
|
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
|
655
|
Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":2,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","last_checkin":"2016-12-13
|
656
|
10:58:55 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
|
657
|
10:58:56 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7a08106d8","productId":"69","productName":"Red
|
658
|
Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:00:53.505+0000","updated":"2016-12-13T11:00:53.505+0000"}]},"content_host_id":4,"parameters":[],"interfaces":[{"id":4,"name":"testvm","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testvm","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"4","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
|
659
|
Corporation/testvm","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-13T10:58:57+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
|
660
|
http_version:
|
661
|
recorded_at: Tue, 13 Dec 2016 14:48:22 GMT
|
662
|
- request:
|
663
|
method: get
|
664
|
uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions
|
665
|
body:
|
666
|
encoding: US-ASCII
|
667
|
string: ''
|
668
|
headers:
|
669
|
Accept:
|
670
|
- application/json;version=2
|
671
|
Accept-Encoding:
|
672
|
- gzip, deflate
|
673
|
User-Agent:
|
674
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
675
|
Content-Type:
|
676
|
- application/json
|
677
|
Accept-Language:
|
678
|
- en
|
679
|
Host:
|
680
|
- satlap.example.com
|
681
|
response:
|
682
|
status:
|
683
|
code: 200
|
684
|
message: OK
|
685
|
headers:
|
686
|
Date:
|
687
|
- Tue, 13 Dec 2016 14:48:24 GMT
|
688
|
Server:
|
689
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
690
|
X-Frame-Options:
|
691
|
- SAMEORIGIN
|
692
|
X-Xss-Protection:
|
693
|
- 1; mode=block
|
694
|
X-Content-Type-Options:
|
695
|
- nosniff
|
696
|
Foreman-Version:
|
697
|
- 1.11.0.54
|
698
|
Foreman-Api-Version:
|
699
|
- '2'
|
700
|
Apipie-Checksum:
|
701
|
- e1df2e8d43e22495b02a53b48e3b5298
|
702
|
Cache-Control:
|
703
|
- max-age=0, private, must-revalidate
|
704
|
X-Request-Id:
|
705
|
- 53e1a2db-1fcd-405a-8859-dc4007daf680
|
706
|
X-Runtime:
|
707
|
- '0.239072'
|
708
|
X-Powered-By:
|
709
|
- Phusion Passenger 4.0.18
|
710
|
Set-Cookie:
|
711
|
- _session_id=a5203f8e74068e0338cdc686f8f4c497; path=/; secure; HttpOnly
|
712
|
Etag:
|
713
|
- '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
|
714
|
Status:
|
715
|
- 200 OK
|
716
|
Vary:
|
717
|
- Accept-Encoding
|
718
|
Content-Length:
|
719
|
- '770'
|
720
|
Content-Type:
|
721
|
- application/json; charset=utf-8
|
722
|
body:
|
723
|
encoding: ASCII-8BIT
|
724
|
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
725
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":198,"quantity":200,"consumed":2,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
726
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
727
|
|
728
|
'
|
729
|
http_version:
|
730
|
recorded_at: Tue, 13 Dec 2016 14:48:22 GMT
|
731
|
- request:
|
732
|
method: put
|
733
|
uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/remove_subscriptions
|
734
|
body:
|
735
|
encoding: UTF-8
|
736
|
string: '{"subscriptions":[{"id":37,"quantity":1}]}'
|
737
|
headers:
|
738
|
Accept:
|
739
|
- application/json;version=2
|
740
|
Accept-Encoding:
|
741
|
- gzip, deflate
|
742
|
User-Agent:
|
743
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
744
|
Content-Type:
|
745
|
- application/json
|
746
|
Accept-Language:
|
747
|
- en
|
748
|
Content-Length:
|
749
|
- '42'
|
750
|
Host:
|
751
|
- satlap.example.com
|
752
|
response:
|
753
|
status:
|
754
|
code: 200
|
755
|
message: OK
|
756
|
headers:
|
757
|
Date:
|
758
|
- Tue, 13 Dec 2016 14:48:25 GMT
|
759
|
Server:
|
760
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
761
|
X-Frame-Options:
|
762
|
- SAMEORIGIN
|
763
|
X-Xss-Protection:
|
764
|
- 1; mode=block
|
765
|
X-Content-Type-Options:
|
766
|
- nosniff
|
767
|
Foreman-Version:
|
768
|
- 1.11.0.54
|
769
|
Foreman-Api-Version:
|
770
|
- '2'
|
771
|
Apipie-Checksum:
|
772
|
- e1df2e8d43e22495b02a53b48e3b5298
|
773
|
Cache-Control:
|
774
|
- max-age=0, private, must-revalidate
|
775
|
X-Request-Id:
|
776
|
- 9d591a22-b747-498e-8024-4788f0d34398
|
777
|
X-Runtime:
|
778
|
- '1.132652'
|
779
|
X-Powered-By:
|
780
|
- Phusion Passenger 4.0.18
|
781
|
Set-Cookie:
|
782
|
- _session_id=c486207391b5335f67f019d527788e03; path=/; secure; HttpOnly
|
783
|
- request_method=PUT; path=/
|
784
|
Etag:
|
785
|
- '"a6dab0ae899304dddfc4c9c0d099f6ec-gzip"'
|
786
|
Status:
|
787
|
- 200 OK
|
788
|
Vary:
|
789
|
- Accept-Encoding
|
790
|
Content-Length:
|
791
|
- '770'
|
792
|
Content-Type:
|
793
|
- application/json; charset=utf-8
|
794
|
body:
|
795
|
encoding: ASCII-8BIT
|
796
|
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
797
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
798
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
799
|
|
800
|
'
|
801
|
http_version:
|
802
|
recorded_at: Tue, 13 Dec 2016 14:48:23 GMT
|
803
|
- request:
|
804
|
method: get
|
805
|
uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/subscriptions?full_results=true
|
806
|
body:
|
807
|
encoding: US-ASCII
|
808
|
string: ''
|
809
|
headers:
|
810
|
Accept:
|
811
|
- application/json;version=2
|
812
|
Accept-Encoding:
|
813
|
- gzip, deflate
|
814
|
User-Agent:
|
815
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
816
|
Content-Type:
|
817
|
- application/json
|
818
|
Accept-Language:
|
819
|
- en
|
820
|
Host:
|
821
|
- satlap.example.com
|
822
|
response:
|
823
|
status:
|
824
|
code: 200
|
825
|
message: OK
|
826
|
headers:
|
827
|
Date:
|
828
|
- Tue, 13 Dec 2016 14:48:26 GMT
|
829
|
Server:
|
830
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
831
|
X-Frame-Options:
|
832
|
- SAMEORIGIN
|
833
|
X-Xss-Protection:
|
834
|
- 1; mode=block
|
835
|
X-Content-Type-Options:
|
836
|
- nosniff
|
837
|
Foreman-Version:
|
838
|
- 1.11.0.54
|
839
|
Foreman-Api-Version:
|
840
|
- '2'
|
841
|
Apipie-Checksum:
|
842
|
- e1df2e8d43e22495b02a53b48e3b5298
|
843
|
Cache-Control:
|
844
|
- max-age=0, private, must-revalidate
|
845
|
X-Request-Id:
|
846
|
- 1c5dfcb8-097a-45c6-aa79-1af4d986d989
|
847
|
X-Runtime:
|
848
|
- '0.640460'
|
849
|
X-Powered-By:
|
850
|
- Phusion Passenger 4.0.18
|
851
|
Set-Cookie:
|
852
|
- _session_id=af47d6386c6086e253bed0df8ed2f413; path=/; secure; HttpOnly
|
853
|
Etag:
|
854
|
- '"5a2d8f497508d7cba195e796f291b0d8-gzip"'
|
855
|
Status:
|
856
|
- 200 OK
|
857
|
Vary:
|
858
|
- Accept-Encoding
|
859
|
Content-Length:
|
860
|
- '1972'
|
861
|
Content-Type:
|
862
|
- application/json; charset=utf-8
|
863
|
body:
|
864
|
encoding: ASCII-8BIT
|
865
|
string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":33,"cp_id":"4028f99158f378890158f7d684cc04a0","subscription_id":19,"name":"Red
|
866
|
Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
867
|
Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":35,"cp_id":"4028f99158f378890158f7d6851404f2","subscription_id":20,"name":"Red
|
868
|
Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
869
|
Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
870
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
871
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
872
|
|
873
|
'
|
874
|
http_version:
|
875
|
recorded_at: Tue, 13 Dec 2016 14:48:24 GMT
|
876
|
- request:
|
877
|
method: put
|
878
|
uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/add_subscriptions
|
879
|
body:
|
880
|
encoding: UTF-8
|
881
|
string: '{"subscriptions":[{"id":37,"quantity":0}]}'
|
882
|
headers:
|
883
|
Accept:
|
884
|
- application/json;version=2
|
885
|
Accept-Encoding:
|
886
|
- gzip, deflate
|
887
|
User-Agent:
|
888
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
889
|
Content-Type:
|
890
|
- application/json
|
891
|
Accept-Language:
|
892
|
- en
|
893
|
Content-Length:
|
894
|
- '42'
|
895
|
Host:
|
896
|
- satlap.example.com
|
897
|
response:
|
898
|
status:
|
899
|
code: 200
|
900
|
message: OK
|
901
|
headers:
|
902
|
Date:
|
903
|
- Tue, 13 Dec 2016 14:48:26 GMT
|
904
|
Server:
|
905
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
906
|
X-Frame-Options:
|
907
|
- SAMEORIGIN
|
908
|
X-Xss-Protection:
|
909
|
- 1; mode=block
|
910
|
X-Content-Type-Options:
|
911
|
- nosniff
|
912
|
Foreman-Version:
|
913
|
- 1.11.0.54
|
914
|
Foreman-Api-Version:
|
915
|
- '2'
|
916
|
Apipie-Checksum:
|
917
|
- e1df2e8d43e22495b02a53b48e3b5298
|
918
|
Cache-Control:
|
919
|
- max-age=0, private, must-revalidate
|
920
|
X-Request-Id:
|
921
|
- 24f53ce7-470e-49fa-82bf-1779451f3a50
|
922
|
X-Runtime:
|
923
|
- '0.975581'
|
924
|
X-Powered-By:
|
925
|
- Phusion Passenger 4.0.18
|
926
|
Set-Cookie:
|
927
|
- _session_id=8fb380508010eab9378e932bdd92cc1a; path=/; secure; HttpOnly
|
928
|
- request_method=PUT; path=/
|
929
|
Etag:
|
930
|
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
|
931
|
Status:
|
932
|
- 200 OK
|
933
|
Vary:
|
934
|
- Accept-Encoding
|
935
|
Content-Length:
|
936
|
- '119'
|
937
|
Content-Type:
|
938
|
- application/json; charset=utf-8
|
939
|
body:
|
940
|
encoding: ASCII-8BIT
|
941
|
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
942
|
|
943
|
'
|
944
|
http_version:
|
945
|
recorded_at: Tue, 13 Dec 2016 14:48:25 GMT
|
946
|
- request:
|
947
|
method: put
|
948
|
uri: https://admin:changeme@satlap.example.com/api/hosts/4
|
949
|
body:
|
950
|
encoding: UTF-8
|
951
|
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
|
952
|
Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}'
|
953
|
headers:
|
954
|
Accept:
|
955
|
- application/json;version=2
|
956
|
Accept-Encoding:
|
957
|
- gzip, deflate
|
958
|
User-Agent:
|
959
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
960
|
Content-Type:
|
961
|
- application/json
|
962
|
Accept-Language:
|
963
|
- en
|
964
|
Content-Length:
|
965
|
- '271'
|
966
|
Host:
|
967
|
- satlap.example.com
|
968
|
response:
|
969
|
status:
|
970
|
code: 200
|
971
|
message: OK
|
972
|
headers:
|
973
|
Date:
|
974
|
- Tue, 13 Dec 2016 14:48:27 GMT
|
975
|
Server:
|
976
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
977
|
X-Frame-Options:
|
978
|
- SAMEORIGIN
|
979
|
X-Xss-Protection:
|
980
|
- 1; mode=block
|
981
|
X-Content-Type-Options:
|
982
|
- nosniff
|
983
|
Foreman-Version:
|
984
|
- 1.11.0.54
|
985
|
Foreman-Api-Version:
|
986
|
- '2'
|
987
|
Apipie-Checksum:
|
988
|
- e1df2e8d43e22495b02a53b48e3b5298
|
989
|
Cache-Control:
|
990
|
- max-age=0, private, must-revalidate
|
991
|
X-Request-Id:
|
992
|
- 85d1a239-13a1-4e0c-bfce-3663217ffbed
|
993
|
X-Runtime:
|
994
|
- '0.606735'
|
995
|
X-Powered-By:
|
996
|
- Phusion Passenger 4.0.18
|
997
|
Set-Cookie:
|
998
|
- _session_id=80e60bbaf807b47d6bd0865651aacb1e; path=/; secure; HttpOnly
|
999
|
- request_method=PUT; path=/
|
1000
|
Etag:
|
1001
|
- '"213863c8545b4acac07c3898c6249b59-gzip"'
|
1002
|
Status:
|
1003
|
- 200 OK
|
1004
|
Vary:
|
1005
|
- Accept-Encoding
|
1006
|
Content-Length:
|
1007
|
- '3814'
|
1008
|
Content-Type:
|
1009
|
- application/json; charset=utf-8
|
1010
|
body:
|
1011
|
encoding: ASCII-8BIT
|
1012
|
string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testvm","image_id":null,"image_name":null,"created_at":"2016-12-13
|
1013
|
10:58:55 UTC","updated_at":"2016-12-13 14:48:27 UTC","last_compile":"2016-12-13
|
1014
|
10:58:57 UTC","global_status":2,"global_status_label":"Error","organization_id":8,"organization_name":"Test
|
1015
|
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
|
1016
|
not calculate errata status, ensure host is registered and katello-agent is
|
1017
|
installed","subscription_status":2,"subscription_status_label":"Unentitled","name":"testvm","id":4,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","content_view_id":2,"content_view_name":"Default
|
1018
|
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
|
1019
|
Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":2,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_facet_attributes":{"id":4,"uuid":"05f67758-243c-440b-9349-776aafb933e1","last_checkin":"2016-12-13
|
1020
|
10:58:55 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
|
1021
|
10:58:56 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7a08106d8","productId":"69","productName":"Red
|
1022
|
Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:00:53.505+0000","updated":"2016-12-13T11:00:53.505+0000"}]},"content_host_id":4,"parameters":[],"interfaces":[{"id":4,"name":"testvm","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"system::certificate_version":"3.2","network::hostname":"testvm","cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"4","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
|
1023
|
Corporation/testvm","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-13T10:58:57+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
|
1024
|
http_version:
|
1025
|
recorded_at: Tue, 13 Dec 2016 14:48:26 GMT
|
1026
|
- request:
|
1027
|
method: get
|
1028
|
uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions
|
1029
|
body:
|
1030
|
encoding: US-ASCII
|
1031
|
string: ''
|
1032
|
headers:
|
1033
|
Accept:
|
1034
|
- application/json;version=2
|
1035
|
Accept-Encoding:
|
1036
|
- gzip, deflate
|
1037
|
User-Agent:
|
1038
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1039
|
Content-Type:
|
1040
|
- application/json
|
1041
|
Accept-Language:
|
1042
|
- en
|
1043
|
Host:
|
1044
|
- satlap.example.com
|
1045
|
response:
|
1046
|
status:
|
1047
|
code: 200
|
1048
|
message: OK
|
1049
|
headers:
|
1050
|
Date:
|
1051
|
- Tue, 13 Dec 2016 14:48:28 GMT
|
1052
|
Server:
|
1053
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1054
|
X-Frame-Options:
|
1055
|
- SAMEORIGIN
|
1056
|
X-Xss-Protection:
|
1057
|
- 1; mode=block
|
1058
|
X-Content-Type-Options:
|
1059
|
- nosniff
|
1060
|
Foreman-Version:
|
1061
|
- 1.11.0.54
|
1062
|
Foreman-Api-Version:
|
1063
|
- '2'
|
1064
|
Apipie-Checksum:
|
1065
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1066
|
Cache-Control:
|
1067
|
- max-age=0, private, must-revalidate
|
1068
|
X-Request-Id:
|
1069
|
- 1b8e1dfa-54c0-40f3-b613-c004d37c78fb
|
1070
|
X-Runtime:
|
1071
|
- '0.260198'
|
1072
|
X-Powered-By:
|
1073
|
- Phusion Passenger 4.0.18
|
1074
|
Set-Cookie:
|
1075
|
- _session_id=a9c812854ded3f812a77769115d36186; path=/; secure; HttpOnly
|
1076
|
Etag:
|
1077
|
- '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
|
1078
|
Status:
|
1079
|
- 200 OK
|
1080
|
Vary:
|
1081
|
- Accept-Encoding
|
1082
|
Content-Length:
|
1083
|
- '770'
|
1084
|
Content-Type:
|
1085
|
- application/json; charset=utf-8
|
1086
|
body:
|
1087
|
encoding: ASCII-8BIT
|
1088
|
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1089
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":198,"quantity":200,"consumed":2,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1090
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1091
|
|
1092
|
'
|
1093
|
http_version:
|
1094
|
recorded_at: Tue, 13 Dec 2016 14:48:26 GMT
|
1095
|
- request:
|
1096
|
method: put
|
1097
|
uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/remove_subscriptions
|
1098
|
body:
|
1099
|
encoding: UTF-8
|
1100
|
string: '{"subscriptions":[{"id":37,"quantity":1}]}'
|
1101
|
headers:
|
1102
|
Accept:
|
1103
|
- application/json;version=2
|
1104
|
Accept-Encoding:
|
1105
|
- gzip, deflate
|
1106
|
User-Agent:
|
1107
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1108
|
Content-Type:
|
1109
|
- application/json
|
1110
|
Accept-Language:
|
1111
|
- en
|
1112
|
Content-Length:
|
1113
|
- '42'
|
1114
|
Host:
|
1115
|
- satlap.example.com
|
1116
|
response:
|
1117
|
status:
|
1118
|
code: 200
|
1119
|
message: OK
|
1120
|
headers:
|
1121
|
Date:
|
1122
|
- Tue, 13 Dec 2016 14:48:28 GMT
|
1123
|
Server:
|
1124
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1125
|
X-Frame-Options:
|
1126
|
- SAMEORIGIN
|
1127
|
X-Xss-Protection:
|
1128
|
- 1; mode=block
|
1129
|
X-Content-Type-Options:
|
1130
|
- nosniff
|
1131
|
Foreman-Version:
|
1132
|
- 1.11.0.54
|
1133
|
Foreman-Api-Version:
|
1134
|
- '2'
|
1135
|
Apipie-Checksum:
|
1136
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1137
|
Cache-Control:
|
1138
|
- max-age=0, private, must-revalidate
|
1139
|
X-Request-Id:
|
1140
|
- fd3688c7-cf91-459a-8e81-047befd46d49
|
1141
|
X-Runtime:
|
1142
|
- '0.933296'
|
1143
|
X-Powered-By:
|
1144
|
- Phusion Passenger 4.0.18
|
1145
|
Set-Cookie:
|
1146
|
- _session_id=868e90253c53c6ede4b6ba5991ec0f11; path=/; secure; HttpOnly
|
1147
|
- request_method=PUT; path=/
|
1148
|
Etag:
|
1149
|
- '"a6dab0ae899304dddfc4c9c0d099f6ec-gzip"'
|
1150
|
Status:
|
1151
|
- 200 OK
|
1152
|
Vary:
|
1153
|
- Accept-Encoding
|
1154
|
Content-Length:
|
1155
|
- '770'
|
1156
|
Content-Type:
|
1157
|
- application/json; charset=utf-8
|
1158
|
body:
|
1159
|
encoding: ASCII-8BIT
|
1160
|
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1161
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1162
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1163
|
|
1164
|
'
|
1165
|
http_version:
|
1166
|
recorded_at: Tue, 13 Dec 2016 14:48:27 GMT
|
1167
|
- request:
|
1168
|
method: get
|
1169
|
uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/subscriptions?full_results=true
|
1170
|
body:
|
1171
|
encoding: US-ASCII
|
1172
|
string: ''
|
1173
|
headers:
|
1174
|
Accept:
|
1175
|
- application/json;version=2
|
1176
|
Accept-Encoding:
|
1177
|
- gzip, deflate
|
1178
|
User-Agent:
|
1179
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1180
|
Content-Type:
|
1181
|
- application/json
|
1182
|
Accept-Language:
|
1183
|
- en
|
1184
|
Host:
|
1185
|
- satlap.example.com
|
1186
|
response:
|
1187
|
status:
|
1188
|
code: 200
|
1189
|
message: OK
|
1190
|
headers:
|
1191
|
Date:
|
1192
|
- Tue, 13 Dec 2016 14:48:29 GMT
|
1193
|
Server:
|
1194
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1195
|
X-Frame-Options:
|
1196
|
- SAMEORIGIN
|
1197
|
X-Xss-Protection:
|
1198
|
- 1; mode=block
|
1199
|
X-Content-Type-Options:
|
1200
|
- nosniff
|
1201
|
Foreman-Version:
|
1202
|
- 1.11.0.54
|
1203
|
Foreman-Api-Version:
|
1204
|
- '2'
|
1205
|
Apipie-Checksum:
|
1206
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1207
|
Cache-Control:
|
1208
|
- max-age=0, private, must-revalidate
|
1209
|
X-Request-Id:
|
1210
|
- 65364bb8-d55c-4081-b72b-584418f049c1
|
1211
|
X-Runtime:
|
1212
|
- '0.543081'
|
1213
|
X-Powered-By:
|
1214
|
- Phusion Passenger 4.0.18
|
1215
|
Set-Cookie:
|
1216
|
- _session_id=c5e4afe1862db63ac9927a062f2fbfad; path=/; secure; HttpOnly
|
1217
|
Etag:
|
1218
|
- '"5a2d8f497508d7cba195e796f291b0d8-gzip"'
|
1219
|
Status:
|
1220
|
- 200 OK
|
1221
|
Vary:
|
1222
|
- Accept-Encoding
|
1223
|
Content-Length:
|
1224
|
- '1972'
|
1225
|
Content-Type:
|
1226
|
- application/json; charset=utf-8
|
1227
|
body:
|
1228
|
encoding: ASCII-8BIT
|
1229
|
string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":33,"cp_id":"4028f99158f378890158f7d684cc04a0","subscription_id":19,"name":"Red
|
1230
|
Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1231
|
Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":35,"cp_id":"4028f99158f378890158f7d6851404f2","subscription_id":20,"name":"Red
|
1232
|
Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1233
|
Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1234
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1235
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1236
|
|
1237
|
'
|
1238
|
http_version:
|
1239
|
recorded_at: Tue, 13 Dec 2016 14:48:27 GMT
|
1240
|
- request:
|
1241
|
method: put
|
1242
|
uri: https://admin:changeme@satlap.example.com/api/hosts/4/subscriptions/add_subscriptions
|
1243
|
body:
|
1244
|
encoding: UTF-8
|
1245
|
string: '{"subscriptions":[{"id":37,"quantity":0}]}'
|
1246
|
headers:
|
1247
|
Accept:
|
1248
|
- application/json;version=2
|
1249
|
Accept-Encoding:
|
1250
|
- gzip, deflate
|
1251
|
User-Agent:
|
1252
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1253
|
Content-Type:
|
1254
|
- application/json
|
1255
|
Accept-Language:
|
1256
|
- en
|
1257
|
Content-Length:
|
1258
|
- '42'
|
1259
|
Host:
|
1260
|
- satlap.example.com
|
1261
|
response:
|
1262
|
status:
|
1263
|
code: 200
|
1264
|
message: OK
|
1265
|
headers:
|
1266
|
Date:
|
1267
|
- Tue, 13 Dec 2016 14:48:30 GMT
|
1268
|
Server:
|
1269
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1270
|
X-Frame-Options:
|
1271
|
- SAMEORIGIN
|
1272
|
X-Xss-Protection:
|
1273
|
- 1; mode=block
|
1274
|
X-Content-Type-Options:
|
1275
|
- nosniff
|
1276
|
Foreman-Version:
|
1277
|
- 1.11.0.54
|
1278
|
Foreman-Api-Version:
|
1279
|
- '2'
|
1280
|
Apipie-Checksum:
|
1281
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1282
|
Cache-Control:
|
1283
|
- max-age=0, private, must-revalidate
|
1284
|
X-Request-Id:
|
1285
|
- e34a834a-71d9-4b5e-9d3a-e54adde4b0ea
|
1286
|
X-Runtime:
|
1287
|
- '0.942634'
|
1288
|
X-Powered-By:
|
1289
|
- Phusion Passenger 4.0.18
|
1290
|
Set-Cookie:
|
1291
|
- _session_id=fc320fb6c34979331762e574900fe00a; path=/; secure; HttpOnly
|
1292
|
- request_method=PUT; path=/
|
1293
|
Etag:
|
1294
|
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
|
1295
|
Status:
|
1296
|
- 200 OK
|
1297
|
Vary:
|
1298
|
- Accept-Encoding
|
1299
|
Content-Length:
|
1300
|
- '119'
|
1301
|
Content-Type:
|
1302
|
- application/json; charset=utf-8
|
1303
|
body:
|
1304
|
encoding: ASCII-8BIT
|
1305
|
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
1306
|
|
1307
|
'
|
1308
|
http_version:
|
1309
|
recorded_at: Tue, 13 Dec 2016 14:48:28 GMT
|
1310
|
- request:
|
1311
|
method: put
|
1312
|
uri: https://admin:changeme@satlap.example.com/api/hosts/5
|
1313
|
body:
|
1314
|
encoding: UTF-8
|
1315
|
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
|
1316
|
Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}'
|
1317
|
headers:
|
1318
|
Accept:
|
1319
|
- application/json;version=2
|
1320
|
Accept-Encoding:
|
1321
|
- gzip, deflate
|
1322
|
User-Agent:
|
1323
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1324
|
Content-Type:
|
1325
|
- application/json
|
1326
|
Accept-Language:
|
1327
|
- en
|
1328
|
Content-Length:
|
1329
|
- '271'
|
1330
|
Host:
|
1331
|
- satlap.example.com
|
1332
|
response:
|
1333
|
status:
|
1334
|
code: 200
|
1335
|
message: OK
|
1336
|
headers:
|
1337
|
Date:
|
1338
|
- Tue, 13 Dec 2016 14:48:31 GMT
|
1339
|
Server:
|
1340
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1341
|
X-Frame-Options:
|
1342
|
- SAMEORIGIN
|
1343
|
X-Xss-Protection:
|
1344
|
- 1; mode=block
|
1345
|
X-Content-Type-Options:
|
1346
|
- nosniff
|
1347
|
Foreman-Version:
|
1348
|
- 1.11.0.54
|
1349
|
Foreman-Api-Version:
|
1350
|
- '2'
|
1351
|
Apipie-Checksum:
|
1352
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1353
|
Cache-Control:
|
1354
|
- max-age=0, private, must-revalidate
|
1355
|
X-Request-Id:
|
1356
|
- a12b8bc5-db54-4234-8b53-a3dfb5f78c2e
|
1357
|
X-Runtime:
|
1358
|
- '0.603570'
|
1359
|
X-Powered-By:
|
1360
|
- Phusion Passenger 4.0.18
|
1361
|
Set-Cookie:
|
1362
|
- _session_id=60d49e479e4f7719fba8344ce8c6fe5f; path=/; secure; HttpOnly
|
1363
|
- request_method=PUT; path=/
|
1364
|
Etag:
|
1365
|
- '"ad5c0377fc0b2c053648e4100b6ef71c-gzip"'
|
1366
|
Status:
|
1367
|
- 200 OK
|
1368
|
Vary:
|
1369
|
- Accept-Encoding
|
1370
|
Content-Length:
|
1371
|
- '3850'
|
1372
|
Content-Type:
|
1373
|
- application/json; charset=utf-8
|
1374
|
body:
|
1375
|
encoding: ASCII-8BIT
|
1376
|
string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13
|
1377
|
11:01:00 UTC","updated_at":"2016-12-13 11:49:06 UTC","last_compile":"2016-12-13
|
1378
|
11:01:02 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test
|
1379
|
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
|
1380
|
not calculate errata status, ensure host is registered and katello-agent is
|
1381
|
installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default
|
1382
|
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
|
1383
|
Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":2,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13
|
1384
|
11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
|
1385
|
11:01:01 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7ccd506f2","productId":"69","productName":"Red
|
1386
|
Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:01:04.853+0000","updated":"2016-12-13T11:01:04.853+0000"}]},"content_host_id":5,"parameters":[],"interfaces":[{"id":5,"name":"testphysical","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"8","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
|
1387
|
Corporation/testphysical","system::certificate_version":"3.2","network::hostname":"testphysical","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-13T11:01:02+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
|
1388
|
http_version:
|
1389
|
recorded_at: Tue, 13 Dec 2016 14:48:29 GMT
|
1390
|
- request:
|
1391
|
method: get
|
1392
|
uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions
|
1393
|
body:
|
1394
|
encoding: US-ASCII
|
1395
|
string: ''
|
1396
|
headers:
|
1397
|
Accept:
|
1398
|
- application/json;version=2
|
1399
|
Accept-Encoding:
|
1400
|
- gzip, deflate
|
1401
|
User-Agent:
|
1402
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1403
|
Content-Type:
|
1404
|
- application/json
|
1405
|
Accept-Language:
|
1406
|
- en
|
1407
|
Host:
|
1408
|
- satlap.example.com
|
1409
|
response:
|
1410
|
status:
|
1411
|
code: 200
|
1412
|
message: OK
|
1413
|
headers:
|
1414
|
Date:
|
1415
|
- Tue, 13 Dec 2016 14:48:31 GMT
|
1416
|
Server:
|
1417
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1418
|
X-Frame-Options:
|
1419
|
- SAMEORIGIN
|
1420
|
X-Xss-Protection:
|
1421
|
- 1; mode=block
|
1422
|
X-Content-Type-Options:
|
1423
|
- nosniff
|
1424
|
Foreman-Version:
|
1425
|
- 1.11.0.54
|
1426
|
Foreman-Api-Version:
|
1427
|
- '2'
|
1428
|
Apipie-Checksum:
|
1429
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1430
|
Cache-Control:
|
1431
|
- max-age=0, private, must-revalidate
|
1432
|
X-Request-Id:
|
1433
|
- 64c6f83f-a604-40a7-9c33-f0dba18a9783
|
1434
|
X-Runtime:
|
1435
|
- '0.231650'
|
1436
|
X-Powered-By:
|
1437
|
- Phusion Passenger 4.0.18
|
1438
|
Set-Cookie:
|
1439
|
- _session_id=aaa1a463a78f62cddbb57259166a7d1f; path=/; secure; HttpOnly
|
1440
|
Etag:
|
1441
|
- '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
|
1442
|
Status:
|
1443
|
- 200 OK
|
1444
|
Vary:
|
1445
|
- Accept-Encoding
|
1446
|
Content-Length:
|
1447
|
- '770'
|
1448
|
Content-Type:
|
1449
|
- application/json; charset=utf-8
|
1450
|
body:
|
1451
|
encoding: ASCII-8BIT
|
1452
|
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1453
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":198,"quantity":200,"consumed":2,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1454
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1455
|
|
1456
|
'
|
1457
|
http_version:
|
1458
|
recorded_at: Tue, 13 Dec 2016 14:48:29 GMT
|
1459
|
- request:
|
1460
|
method: put
|
1461
|
uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions/remove_subscriptions
|
1462
|
body:
|
1463
|
encoding: UTF-8
|
1464
|
string: '{"subscriptions":[{"id":37,"quantity":1}]}'
|
1465
|
headers:
|
1466
|
Accept:
|
1467
|
- application/json;version=2
|
1468
|
Accept-Encoding:
|
1469
|
- gzip, deflate
|
1470
|
User-Agent:
|
1471
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1472
|
Content-Type:
|
1473
|
- application/json
|
1474
|
Accept-Language:
|
1475
|
- en
|
1476
|
Content-Length:
|
1477
|
- '42'
|
1478
|
Host:
|
1479
|
- satlap.example.com
|
1480
|
response:
|
1481
|
status:
|
1482
|
code: 200
|
1483
|
message: OK
|
1484
|
headers:
|
1485
|
Date:
|
1486
|
- Tue, 13 Dec 2016 14:48:32 GMT
|
1487
|
Server:
|
1488
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1489
|
X-Frame-Options:
|
1490
|
- SAMEORIGIN
|
1491
|
X-Xss-Protection:
|
1492
|
- 1; mode=block
|
1493
|
X-Content-Type-Options:
|
1494
|
- nosniff
|
1495
|
Foreman-Version:
|
1496
|
- 1.11.0.54
|
1497
|
Foreman-Api-Version:
|
1498
|
- '2'
|
1499
|
Apipie-Checksum:
|
1500
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1501
|
Cache-Control:
|
1502
|
- max-age=0, private, must-revalidate
|
1503
|
X-Request-Id:
|
1504
|
- 9f01f7f2-54d9-4a30-a209-dec776146461
|
1505
|
X-Runtime:
|
1506
|
- '0.965103'
|
1507
|
X-Powered-By:
|
1508
|
- Phusion Passenger 4.0.18
|
1509
|
Set-Cookie:
|
1510
|
- _session_id=968e0e67f1d89f5d2b3f8845ac58da60; path=/; secure; HttpOnly
|
1511
|
- request_method=PUT; path=/
|
1512
|
Etag:
|
1513
|
- '"a6dab0ae899304dddfc4c9c0d099f6ec-gzip"'
|
1514
|
Status:
|
1515
|
- 200 OK
|
1516
|
Vary:
|
1517
|
- Accept-Encoding
|
1518
|
Content-Length:
|
1519
|
- '770'
|
1520
|
Content-Type:
|
1521
|
- application/json; charset=utf-8
|
1522
|
body:
|
1523
|
encoding: ASCII-8BIT
|
1524
|
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1525
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1526
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1527
|
|
1528
|
'
|
1529
|
http_version:
|
1530
|
recorded_at: Tue, 13 Dec 2016 14:48:30 GMT
|
1531
|
- request:
|
1532
|
method: get
|
1533
|
uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/subscriptions?full_results=true
|
1534
|
body:
|
1535
|
encoding: US-ASCII
|
1536
|
string: ''
|
1537
|
headers:
|
1538
|
Accept:
|
1539
|
- application/json;version=2
|
1540
|
Accept-Encoding:
|
1541
|
- gzip, deflate
|
1542
|
User-Agent:
|
1543
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1544
|
Content-Type:
|
1545
|
- application/json
|
1546
|
Accept-Language:
|
1547
|
- en
|
1548
|
Host:
|
1549
|
- satlap.example.com
|
1550
|
response:
|
1551
|
status:
|
1552
|
code: 200
|
1553
|
message: OK
|
1554
|
headers:
|
1555
|
Date:
|
1556
|
- Tue, 13 Dec 2016 14:48:33 GMT
|
1557
|
Server:
|
1558
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1559
|
X-Frame-Options:
|
1560
|
- SAMEORIGIN
|
1561
|
X-Xss-Protection:
|
1562
|
- 1; mode=block
|
1563
|
X-Content-Type-Options:
|
1564
|
- nosniff
|
1565
|
Foreman-Version:
|
1566
|
- 1.11.0.54
|
1567
|
Foreman-Api-Version:
|
1568
|
- '2'
|
1569
|
Apipie-Checksum:
|
1570
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1571
|
Cache-Control:
|
1572
|
- max-age=0, private, must-revalidate
|
1573
|
X-Request-Id:
|
1574
|
- 055dc747-c5b1-4b46-9a3e-cfe34938211c
|
1575
|
X-Runtime:
|
1576
|
- '0.514123'
|
1577
|
X-Powered-By:
|
1578
|
- Phusion Passenger 4.0.18
|
1579
|
Set-Cookie:
|
1580
|
- _session_id=4ec6f0aa2c28e0fb3c76a6b9b273a61c; path=/; secure; HttpOnly
|
1581
|
Etag:
|
1582
|
- '"5a2d8f497508d7cba195e796f291b0d8-gzip"'
|
1583
|
Status:
|
1584
|
- 200 OK
|
1585
|
Vary:
|
1586
|
- Accept-Encoding
|
1587
|
Content-Length:
|
1588
|
- '1972'
|
1589
|
Content-Type:
|
1590
|
- application/json; charset=utf-8
|
1591
|
body:
|
1592
|
encoding: ASCII-8BIT
|
1593
|
string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":33,"cp_id":"4028f99158f378890158f7d684cc04a0","subscription_id":19,"name":"Red
|
1594
|
Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1595
|
Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":35,"cp_id":"4028f99158f378890158f7d6851404f2","subscription_id":20,"name":"Red
|
1596
|
Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1597
|
Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1598
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1599
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1600
|
|
1601
|
'
|
1602
|
http_version:
|
1603
|
recorded_at: Tue, 13 Dec 2016 14:48:31 GMT
|
1604
|
- request:
|
1605
|
method: put
|
1606
|
uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions/add_subscriptions
|
1607
|
body:
|
1608
|
encoding: UTF-8
|
1609
|
string: '{"subscriptions":[{"id":37,"quantity":0}]}'
|
1610
|
headers:
|
1611
|
Accept:
|
1612
|
- application/json;version=2
|
1613
|
Accept-Encoding:
|
1614
|
- gzip, deflate
|
1615
|
User-Agent:
|
1616
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1617
|
Content-Type:
|
1618
|
- application/json
|
1619
|
Accept-Language:
|
1620
|
- en
|
1621
|
Content-Length:
|
1622
|
- '42'
|
1623
|
Host:
|
1624
|
- satlap.example.com
|
1625
|
response:
|
1626
|
status:
|
1627
|
code: 200
|
1628
|
message: OK
|
1629
|
headers:
|
1630
|
Date:
|
1631
|
- Tue, 13 Dec 2016 14:48:33 GMT
|
1632
|
Server:
|
1633
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1634
|
X-Frame-Options:
|
1635
|
- SAMEORIGIN
|
1636
|
X-Xss-Protection:
|
1637
|
- 1; mode=block
|
1638
|
X-Content-Type-Options:
|
1639
|
- nosniff
|
1640
|
Foreman-Version:
|
1641
|
- 1.11.0.54
|
1642
|
Foreman-Api-Version:
|
1643
|
- '2'
|
1644
|
Apipie-Checksum:
|
1645
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1646
|
Cache-Control:
|
1647
|
- max-age=0, private, must-revalidate
|
1648
|
X-Request-Id:
|
1649
|
- c13be249-d2fe-439e-9bc3-e9d03913eadb
|
1650
|
X-Runtime:
|
1651
|
- '0.989503'
|
1652
|
X-Powered-By:
|
1653
|
- Phusion Passenger 4.0.18
|
1654
|
Set-Cookie:
|
1655
|
- _session_id=c173b5a1c686f5f13f6d1371ad5be60f; path=/; secure; HttpOnly
|
1656
|
- request_method=PUT; path=/
|
1657
|
Etag:
|
1658
|
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
|
1659
|
Status:
|
1660
|
- 200 OK
|
1661
|
Vary:
|
1662
|
- Accept-Encoding
|
1663
|
Content-Length:
|
1664
|
- '119'
|
1665
|
Content-Type:
|
1666
|
- application/json; charset=utf-8
|
1667
|
body:
|
1668
|
encoding: ASCII-8BIT
|
1669
|
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
1670
|
|
1671
|
'
|
1672
|
http_version:
|
1673
|
recorded_at: Tue, 13 Dec 2016 14:48:32 GMT
|
1674
|
- request:
|
1675
|
method: put
|
1676
|
uri: https://admin:changeme@satlap.example.com/api/hosts/5
|
1677
|
body:
|
1678
|
encoding: UTF-8
|
1679
|
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
|
1680
|
Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}'
|
1681
|
headers:
|
1682
|
Accept:
|
1683
|
- application/json;version=2
|
1684
|
Accept-Encoding:
|
1685
|
- gzip, deflate
|
1686
|
User-Agent:
|
1687
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1688
|
Content-Type:
|
1689
|
- application/json
|
1690
|
Accept-Language:
|
1691
|
- en
|
1692
|
Content-Length:
|
1693
|
- '271'
|
1694
|
Host:
|
1695
|
- satlap.example.com
|
1696
|
response:
|
1697
|
status:
|
1698
|
code: 200
|
1699
|
message: OK
|
1700
|
headers:
|
1701
|
Date:
|
1702
|
- Tue, 13 Dec 2016 14:48:34 GMT
|
1703
|
Server:
|
1704
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1705
|
X-Frame-Options:
|
1706
|
- SAMEORIGIN
|
1707
|
X-Xss-Protection:
|
1708
|
- 1; mode=block
|
1709
|
X-Content-Type-Options:
|
1710
|
- nosniff
|
1711
|
Foreman-Version:
|
1712
|
- 1.11.0.54
|
1713
|
Foreman-Api-Version:
|
1714
|
- '2'
|
1715
|
Apipie-Checksum:
|
1716
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1717
|
Cache-Control:
|
1718
|
- max-age=0, private, must-revalidate
|
1719
|
X-Request-Id:
|
1720
|
- a4bddce6-8806-4536-8d98-4803d5f09ca6
|
1721
|
X-Runtime:
|
1722
|
- '0.674309'
|
1723
|
X-Powered-By:
|
1724
|
- Phusion Passenger 4.0.18
|
1725
|
Set-Cookie:
|
1726
|
- _session_id=eaf7397d5a536ac7bf92d3534b5b9bf8; path=/; secure; HttpOnly
|
1727
|
- request_method=PUT; path=/
|
1728
|
Etag:
|
1729
|
- '"ad5c0377fc0b2c053648e4100b6ef71c-gzip"'
|
1730
|
Status:
|
1731
|
- 200 OK
|
1732
|
Vary:
|
1733
|
- Accept-Encoding
|
1734
|
Content-Length:
|
1735
|
- '3850'
|
1736
|
Content-Type:
|
1737
|
- application/json; charset=utf-8
|
1738
|
body:
|
1739
|
encoding: ASCII-8BIT
|
1740
|
string: '{"ip":null,"environment_id":null,"environment_name":null,"last_report":null,"mac":null,"realm_id":null,"realm_name":null,"sp_mac":null,"sp_ip":null,"sp_name":null,"domain_id":null,"domain_name":null,"architecture_id":null,"architecture_name":null,"operatingsystem_id":null,"operatingsystem_name":null,"subnet_id":null,"subnet_name":null,"sp_subnet_id":null,"ptable_id":null,"ptable_name":null,"medium_id":null,"medium_name":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":null,"hostgroup_id":null,"owner_id":3,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"compute_resource_name":null,"compute_profile_id":null,"compute_profile_name":null,"capabilities":["build"],"provision_method":"build","puppet_proxy_id":null,"certname":"testphysical","image_id":null,"image_name":null,"created_at":"2016-12-13
|
1741
|
11:01:00 UTC","updated_at":"2016-12-13 11:49:06 UTC","last_compile":"2016-12-13
|
1742
|
11:01:02 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test
|
1743
|
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
|
1744
|
not calculate errata status, ensure host is registered and katello-agent is
|
1745
|
installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":5,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","content_view_id":2,"content_view_name":"Default
|
1746
|
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
|
1747
|
Organization View"},"lifecycle_environment":{"id":2,"name":"Library"},"errata_counts":{"security":0,"bugfix":0,"enhancement":0,"total":0},"content_view_version":"1.0","content_view_version_id":2,"content_view_default?":true,"lifecycle_environment_library?":true,"katello_agent_installed":false},"subscription_facet_attributes":{"id":5,"uuid":"a39750b1-252f-41d2-8f8d-646ecd711e02","last_checkin":"2016-12-13
|
1748
|
11:01:00 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-12-13
|
1749
|
11:01:01 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f7d7ccd506f2","productId":"69","productName":"Red
|
1750
|
Hat Enterprise Linux Server","version":"7Server","arch":"x86_64","status":"green","startDate":"2016-06-20T04:00:00.000+0000","endDate":"2017-06-20T03:59:59.000+0000","created":"2016-12-13T11:01:04.853+0000","updated":"2016-12-13T11:01:04.853+0000"}]},"content_host_id":5,"parameters":[],"interfaces":[{"id":5,"name":"testphysical","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"cpu::core(s)_per_socket":"1","cpu::cpu_socket(s)":"8","memory::memtotal":"4GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"7Server","virt::is_guest":"true","virt::uuid":"Test
|
1751
|
Corporation/testphysical","system::certificate_version":"3.2","network::hostname":"testphysical","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-13T11:01:02+00:00"},"host_collections":[],"permissions":{"view_hosts":true,"create_hosts":true,"edit_hosts":true,"destroy_hosts":true,"build_hosts":true,"power_hosts":true,"console_hosts":true,"ipmi_boot":true,"puppetrun_hosts":true,"view_discovered_hosts":true,"submit_discovered_hosts":true,"auto_provision_discovered_hosts":true,"provision_discovered_hosts":true,"edit_discovered_hosts":true,"destroy_discovered_hosts":true}}'
|
1752
|
http_version:
|
1753
|
recorded_at: Tue, 13 Dec 2016 14:48:33 GMT
|
1754
|
- request:
|
1755
|
method: get
|
1756
|
uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions
|
1757
|
body:
|
1758
|
encoding: US-ASCII
|
1759
|
string: ''
|
1760
|
headers:
|
1761
|
Accept:
|
1762
|
- application/json;version=2
|
1763
|
Accept-Encoding:
|
1764
|
- gzip, deflate
|
1765
|
User-Agent:
|
1766
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1767
|
Content-Type:
|
1768
|
- application/json
|
1769
|
Accept-Language:
|
1770
|
- en
|
1771
|
Host:
|
1772
|
- satlap.example.com
|
1773
|
response:
|
1774
|
status:
|
1775
|
code: 200
|
1776
|
message: OK
|
1777
|
headers:
|
1778
|
Date:
|
1779
|
- Tue, 13 Dec 2016 14:48:35 GMT
|
1780
|
Server:
|
1781
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1782
|
X-Frame-Options:
|
1783
|
- SAMEORIGIN
|
1784
|
X-Xss-Protection:
|
1785
|
- 1; mode=block
|
1786
|
X-Content-Type-Options:
|
1787
|
- nosniff
|
1788
|
Foreman-Version:
|
1789
|
- 1.11.0.54
|
1790
|
Foreman-Api-Version:
|
1791
|
- '2'
|
1792
|
Apipie-Checksum:
|
1793
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1794
|
Cache-Control:
|
1795
|
- max-age=0, private, must-revalidate
|
1796
|
X-Request-Id:
|
1797
|
- 4abce132-8fc6-4574-a1ac-57ca5c086148
|
1798
|
X-Runtime:
|
1799
|
- '0.260778'
|
1800
|
X-Powered-By:
|
1801
|
- Phusion Passenger 4.0.18
|
1802
|
Set-Cookie:
|
1803
|
- _session_id=e26afe982c02c09f47172d4b530b3e2d; path=/; secure; HttpOnly
|
1804
|
Etag:
|
1805
|
- '"08063d363b63add4fe3c07b6a2f5ee13-gzip"'
|
1806
|
Status:
|
1807
|
- 200 OK
|
1808
|
Vary:
|
1809
|
- Accept-Encoding
|
1810
|
Content-Length:
|
1811
|
- '770'
|
1812
|
Content-Type:
|
1813
|
- application/json; charset=utf-8
|
1814
|
body:
|
1815
|
encoding: ASCII-8BIT
|
1816
|
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1817
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":198,"quantity":200,"consumed":2,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1818
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1819
|
|
1820
|
'
|
1821
|
http_version:
|
1822
|
recorded_at: Tue, 13 Dec 2016 14:48:33 GMT
|
1823
|
- request:
|
1824
|
method: put
|
1825
|
uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions/remove_subscriptions
|
1826
|
body:
|
1827
|
encoding: UTF-8
|
1828
|
string: '{"subscriptions":[{"id":37,"quantity":1}]}'
|
1829
|
headers:
|
1830
|
Accept:
|
1831
|
- application/json;version=2
|
1832
|
Accept-Encoding:
|
1833
|
- gzip, deflate
|
1834
|
User-Agent:
|
1835
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1836
|
Content-Type:
|
1837
|
- application/json
|
1838
|
Accept-Language:
|
1839
|
- en
|
1840
|
Content-Length:
|
1841
|
- '42'
|
1842
|
Host:
|
1843
|
- satlap.example.com
|
1844
|
response:
|
1845
|
status:
|
1846
|
code: 200
|
1847
|
message: OK
|
1848
|
headers:
|
1849
|
Date:
|
1850
|
- Tue, 13 Dec 2016 14:48:35 GMT
|
1851
|
Server:
|
1852
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1853
|
X-Frame-Options:
|
1854
|
- SAMEORIGIN
|
1855
|
X-Xss-Protection:
|
1856
|
- 1; mode=block
|
1857
|
X-Content-Type-Options:
|
1858
|
- nosniff
|
1859
|
Foreman-Version:
|
1860
|
- 1.11.0.54
|
1861
|
Foreman-Api-Version:
|
1862
|
- '2'
|
1863
|
Apipie-Checksum:
|
1864
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1865
|
Cache-Control:
|
1866
|
- max-age=0, private, must-revalidate
|
1867
|
X-Request-Id:
|
1868
|
- 253b250d-9421-4afb-b7c6-b20deb35824b
|
1869
|
X-Runtime:
|
1870
|
- '1.038903'
|
1871
|
X-Powered-By:
|
1872
|
- Phusion Passenger 4.0.18
|
1873
|
Set-Cookie:
|
1874
|
- _session_id=dc7510f4bdb9a7f9844cb942da72e5f0; path=/; secure; HttpOnly
|
1875
|
- request_method=PUT; path=/
|
1876
|
Etag:
|
1877
|
- '"a6dab0ae899304dddfc4c9c0d099f6ec-gzip"'
|
1878
|
Status:
|
1879
|
- 200 OK
|
1880
|
Vary:
|
1881
|
- Accept-Encoding
|
1882
|
Content-Length:
|
1883
|
- '770'
|
1884
|
Content-Type:
|
1885
|
- application/json; charset=utf-8
|
1886
|
body:
|
1887
|
encoding: ASCII-8BIT
|
1888
|
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1889
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1890
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1891
|
|
1892
|
'
|
1893
|
http_version:
|
1894
|
recorded_at: Tue, 13 Dec 2016 14:48:34 GMT
|
1895
|
- request:
|
1896
|
method: get
|
1897
|
uri: https://admin:changeme@satlap.example.com/katello/api/organizations/8/subscriptions?full_results=true
|
1898
|
body:
|
1899
|
encoding: US-ASCII
|
1900
|
string: ''
|
1901
|
headers:
|
1902
|
Accept:
|
1903
|
- application/json;version=2
|
1904
|
Accept-Encoding:
|
1905
|
- gzip, deflate
|
1906
|
User-Agent:
|
1907
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1908
|
Content-Type:
|
1909
|
- application/json
|
1910
|
Accept-Language:
|
1911
|
- en
|
1912
|
Host:
|
1913
|
- satlap.example.com
|
1914
|
response:
|
1915
|
status:
|
1916
|
code: 200
|
1917
|
message: OK
|
1918
|
headers:
|
1919
|
Date:
|
1920
|
- Tue, 13 Dec 2016 14:48:36 GMT
|
1921
|
Server:
|
1922
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1923
|
X-Frame-Options:
|
1924
|
- SAMEORIGIN
|
1925
|
X-Xss-Protection:
|
1926
|
- 1; mode=block
|
1927
|
X-Content-Type-Options:
|
1928
|
- nosniff
|
1929
|
Foreman-Version:
|
1930
|
- 1.11.0.54
|
1931
|
Foreman-Api-Version:
|
1932
|
- '2'
|
1933
|
Apipie-Checksum:
|
1934
|
- e1df2e8d43e22495b02a53b48e3b5298
|
1935
|
Cache-Control:
|
1936
|
- max-age=0, private, must-revalidate
|
1937
|
X-Request-Id:
|
1938
|
- 2e9789d0-5d69-4eb4-b2db-c18159b0a683
|
1939
|
X-Runtime:
|
1940
|
- '0.578956'
|
1941
|
X-Powered-By:
|
1942
|
- Phusion Passenger 4.0.18
|
1943
|
Set-Cookie:
|
1944
|
- _session_id=e43e468bb05ac9ea9ab31cdb984276c2; path=/; secure; HttpOnly
|
1945
|
Etag:
|
1946
|
- '"5a2d8f497508d7cba195e796f291b0d8-gzip"'
|
1947
|
Status:
|
1948
|
- 200 OK
|
1949
|
Vary:
|
1950
|
- Accept-Encoding
|
1951
|
Content-Length:
|
1952
|
- '1972'
|
1953
|
Content-Type:
|
1954
|
- application/json; charset=utf-8
|
1955
|
body:
|
1956
|
encoding: ASCII-8BIT
|
1957
|
string: '{"organization":{},"total":3,"subtotal":3,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":33,"cp_id":"4028f99158f378890158f7d684cc04a0","subscription_id":19,"name":"Red
|
1958
|
Hat Enterprise Linux for Virtual Datacenters, Standard","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999110,"support_level":"Standard","product_id":"RH00002","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1959
|
Hat Enterprise Linux for Virtual Datacenters, Standard","unmapped_guest":false,"virt_only":false},{"id":35,"cp_id":"4028f99158f378890158f7d6851404f2","subscription_id":20,"name":"Red
|
1960
|
Hat Enterprise Linux for Virtual Datacenters, Premium","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":1,"quantity":1,"consumed":0,"account_number":5700573,"contract_number":10999116,"support_level":"Premium","product_id":"RH00001","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1961
|
Hat Enterprise Linux for Virtual Datacenters, Premium","unmapped_guest":false,"virt_only":false},{"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
|
1962
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","start_date":"2016-06-20T04:00:00.000+0000","end_date":"2017-06-20T03:59:59.000+0000","available":199,"quantity":200,"consumed":1,"account_number":5700573,"contract_number":10999113,"support_level":"Standard","product_id":"RH00004","sockets":2,"cores":null,"ram":null,"instance_multiplier":1,"stacking_id":0,"multi_entitlement":true,"type":"NORMAL","product_name":"Red
|
1963
|
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
1964
|
|
1965
|
'
|
1966
|
http_version:
|
1967
|
recorded_at: Tue, 13 Dec 2016 14:48:34 GMT
|
1968
|
- request:
|
1969
|
method: put
|
1970
|
uri: https://admin:changeme@satlap.example.com/api/hosts/5/subscriptions/add_subscriptions
|
1971
|
body:
|
1972
|
encoding: UTF-8
|
1973
|
string: '{"subscriptions":[{"id":37,"quantity":0}]}'
|
1974
|
headers:
|
1975
|
Accept:
|
1976
|
- application/json;version=2
|
1977
|
Accept-Encoding:
|
1978
|
- gzip, deflate
|
1979
|
User-Agent:
|
1980
|
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
|
1981
|
Content-Type:
|
1982
|
- application/json
|
1983
|
Accept-Language:
|
1984
|
- en
|
1985
|
Content-Length:
|
1986
|
- '42'
|
1987
|
Host:
|
1988
|
- satlap.example.com
|
1989
|
response:
|
1990
|
status:
|
1991
|
code: 200
|
1992
|
message: OK
|
1993
|
headers:
|
1994
|
Date:
|
1995
|
- Tue, 13 Dec 2016 14:48:37 GMT
|
1996
|
Server:
|
1997
|
- Apache/2.4.6 (Red Hat Enterprise Linux)
|
1998
|
X-Frame-Options:
|
1999
|
- SAMEORIGIN
|
2000
|
X-Xss-Protection:
|
2001
|
- 1; mode=block
|
2002
|
X-Content-Type-Options:
|
2003
|
- nosniff
|
2004
|
Foreman-Version:
|
2005
|
- 1.11.0.54
|
2006
|
Foreman-Api-Version:
|
2007
|
- '2'
|
2008
|
Apipie-Checksum:
|
2009
|
- e1df2e8d43e22495b02a53b48e3b5298
|
2010
|
Cache-Control:
|
2011
|
- max-age=0, private, must-revalidate
|
2012
|
X-Request-Id:
|
2013
|
- 7e122fc9-0482-4b20-8d6a-cffa0a75a2d7
|
2014
|
X-Runtime:
|
2015
|
- '0.892579'
|
2016
|
X-Powered-By:
|
2017
|
- Phusion Passenger 4.0.18
|
2018
|
Set-Cookie:
|
2019
|
- _session_id=b7b69504b1fc1080909c3061d6ba3a4f; path=/; secure; HttpOnly
|
2020
|
- request_method=PUT; path=/
|
2021
|
Etag:
|
2022
|
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
|
2023
|
Status:
|
2024
|
- 200 OK
|
2025
|
Vary:
|
2026
|
- Accept-Encoding
|
2027
|
Content-Length:
|
2028
|
- '119'
|
2029
|
Content-Type:
|
2030
|
- application/json; charset=utf-8
|
2031
|
body:
|
2032
|
encoding: ASCII-8BIT
|
2033
|
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
|
2034
|
|
2035
|
'
|
2036
|
http_version:
|
2037
|
recorded_at: Tue, 13 Dec 2016 14:48:35 GMT
|
2038
|
recorded_with: VCR 3.0.3
|