Project

General

Profile

Revision 4a6b2238

Added by Thomas McKay about 6 years ago

fixes #17735 - export content-hosts count greater than page size

vcr - full re-record

View differences:

test/fixtures/vcr_cassettes/resources/content_hosts/import_search.yml
2 2
http_interactions:
3 3
- request:
4 4
    method: get
5
    uri: https://admin:changeme@satlap.example.com/api/hosts/44/subscriptions
5
    uri: https://admin:changeme@satlap.example.com/api/status
6 6
    body:
7 7
      encoding: US-ASCII
8 8
      string: ''
9 9
    headers:
10
      Accept:
11
      - application/json;version=2
12 10
      Accept-Encoding:
13
      - gzip, deflate
14
      User-Agent:
15
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
16
      Content-Type:
17
      - application/json
18
      Accept-Language:
19
      - en
20
      Host:
21
      - satlap.example.com
22
  response:
23
    status:
24
      code: 200
25
      message: OK
26
    headers:
27
      Date:
28
      - Tue, 13 Dec 2016 14:46:45 GMT
29
      Server:
30
      - Apache/2.4.6 (Red Hat Enterprise Linux)
31
      X-Frame-Options:
32
      - SAMEORIGIN
33
      X-Xss-Protection:
34
      - 1; mode=block
35
      X-Content-Type-Options:
36
      - nosniff
37
      Foreman-Version:
38
      - 1.11.0.54
39
      Foreman-Api-Version:
40
      - '2'
41
      Apipie-Checksum:
42
      - e1df2e8d43e22495b02a53b48e3b5298
43
      Cache-Control:
44
      - max-age=0, private, must-revalidate
45
      X-Request-Id:
46
      - 50ef4a07-6c64-41d0-8d2b-d06a4d500d32
47
      X-Runtime:
48
      - '0.092296'
49
      X-Powered-By:
50
      - Phusion Passenger 4.0.18
51
      Set-Cookie:
52
      - _session_id=12a76c5f51044501f53b4c3553a02e8f; path=/; secure; HttpOnly
53
      Etag:
54
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
55
      Status:
56
      - 200 OK
57
      Vary:
58
      - Accept-Encoding
59
      Content-Length:
60
      - '119'
61
      Content-Type:
62
      - application/json; charset=utf-8
63
    body:
64
      encoding: ASCII-8BIT
65
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
66

  
67
'
68
    http_version: 
69
  recorded_at: Tue, 13 Dec 2016 14:46:43 GMT
70
- request:
71
    method: get
72
    uri: https://admin:changeme@satlap.example.com/api/hosts/45/subscriptions
73
    body:
74
      encoding: US-ASCII
75
      string: ''
76
    headers:
11
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
77 12
      Accept:
78
      - application/json;version=2
79
      Accept-Encoding:
80
      - gzip, deflate
13
      - "*/*"
81 14
      User-Agent:
82
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
83
      Content-Type:
84
      - application/json
85
      Accept-Language:
86
      - en
15
      - Ruby
87 16
      Host:
88 17
      - satlap.example.com
89 18
  response:
......
92 21
      message: OK
93 22
    headers:
94 23
      Date:
95
      - Tue, 13 Dec 2016 14:46:47 GMT
24
      - Mon, 19 Dec 2016 16:41:24 GMT
96 25
      Server:
97 26
      - Apache/2.4.6 (Red Hat Enterprise Linux)
98 27
      X-Frame-Options:
......
102 31
      X-Content-Type-Options:
103 32
      - nosniff
104 33
      Foreman-Version:
105
      - 1.11.0.54
34
      - 1.11.0.61
106 35
      Foreman-Api-Version:
107 36
      - '2'
108 37
      Apipie-Checksum:
109
      - e1df2e8d43e22495b02a53b48e3b5298
38
      - 9793fd9909c89b81479655ed560c4340
110 39
      Cache-Control:
111 40
      - max-age=0, private, must-revalidate
112 41
      X-Request-Id:
113
      - 451eb555-9b68-47ec-b481-715950a61be9
42
      - 88901fb3-c823-4335-b55a-e84304c74e4c
114 43
      X-Runtime:
115
      - '0.096093'
44
      - '0.037100'
116 45
      X-Powered-By:
117 46
      - Phusion Passenger 4.0.18
118 47
      Set-Cookie:
119
      - _session_id=e45fdd3ec7d2273d03ded42fdd9cd673; path=/; secure; HttpOnly
48
      - _session_id=5455c53bacdcdfe5da94a561a1b983ff; path=/; secure; HttpOnly
120 49
      Etag:
121
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
50
      - '"6ec0375dc2b106a955e67a8139b7d9c5"'
122 51
      Status:
123 52
      - 200 OK
124
      Vary:
125
      - Accept-Encoding
126 53
      Content-Length:
127
      - '119'
54
      - '66'
128 55
      Content-Type:
129 56
      - application/json; charset=utf-8
130 57
    body:
131
      encoding: ASCII-8BIT
132
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
133

  
134
'
58
      encoding: UTF-8
59
      string: '{"result":"ok","status":200,"version":"1.11.0.61","api_version":2}'
135 60
    http_version: 
136
  recorded_at: Tue, 13 Dec 2016 14:46:45 GMT
61
  recorded_at: Mon, 19 Dec 2016 16:41:07 GMT
137 62
- request:
138 63
    method: get
139
    uri: https://admin:changeme@satlap.example.com/api/hosts/46/subscriptions
64
    uri: https://admin:changeme@satlap.example.com/api/v2/plugins
140 65
    body:
141 66
      encoding: US-ASCII
142 67
      string: ''
143 68
    headers:
144
      Accept:
145
      - application/json;version=2
146 69
      Accept-Encoding:
147
      - gzip, deflate
148
      User-Agent:
149
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
150
      Content-Type:
151
      - application/json
152
      Accept-Language:
153
      - en
154
      Host:
155
      - satlap.example.com
156
  response:
157
    status:
158
      code: 200
159
      message: OK
160
    headers:
161
      Date:
162
      - Tue, 13 Dec 2016 14:46:49 GMT
163
      Server:
164
      - Apache/2.4.6 (Red Hat Enterprise Linux)
165
      X-Frame-Options:
166
      - SAMEORIGIN
167
      X-Xss-Protection:
168
      - 1; mode=block
169
      X-Content-Type-Options:
170
      - nosniff
171
      Foreman-Version:
172
      - 1.11.0.54
173
      Foreman-Api-Version:
174
      - '2'
175
      Apipie-Checksum:
176
      - e1df2e8d43e22495b02a53b48e3b5298
177
      Cache-Control:
178
      - max-age=0, private, must-revalidate
179
      X-Request-Id:
180
      - 356836dc-5c56-4540-aa4f-0e714a595a38
181
      X-Runtime:
182
      - '0.107992'
183
      X-Powered-By:
184
      - Phusion Passenger 4.0.18
185
      Set-Cookie:
186
      - _session_id=c806ea65ea9e17713c550274bd918484; path=/; secure; HttpOnly
187
      Etag:
188
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
189
      Status:
190
      - 200 OK
191
      Vary:
192
      - Accept-Encoding
193
      Content-Length:
194
      - '119'
195
      Content-Type:
196
      - application/json; charset=utf-8
197
    body:
198
      encoding: ASCII-8BIT
199
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
200

  
201
'
202
    http_version: 
203
  recorded_at: Tue, 13 Dec 2016 14:46:47 GMT
204
- request:
205
    method: get
206
    uri: https://admin:changeme@satlap.example.com/api/hosts/47/subscriptions
207
    body:
208
      encoding: US-ASCII
209
      string: ''
210
    headers:
70
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
211 71
      Accept:
212
      - application/json;version=2
213
      Accept-Encoding:
214
      - gzip, deflate
72
      - "*/*"
215 73
      User-Agent:
216
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
217
      Content-Type:
218
      - application/json
219
      Accept-Language:
220
      - en
74
      - Ruby
221 75
      Host:
222 76
      - satlap.example.com
223 77
  response:
......
226 80
      message: OK
227 81
    headers:
228 82
      Date:
229
      - Tue, 13 Dec 2016 14:46:50 GMT
83
      - Mon, 19 Dec 2016 16:41:24 GMT
230 84
      Server:
231 85
      - Apache/2.4.6 (Red Hat Enterprise Linux)
232 86
      X-Frame-Options:
......
236 90
      X-Content-Type-Options:
237 91
      - nosniff
238 92
      Foreman-Version:
239
      - 1.11.0.54
93
      - 1.11.0.61
240 94
      Foreman-Api-Version:
241 95
      - '2'
242 96
      Apipie-Checksum:
243
      - e1df2e8d43e22495b02a53b48e3b5298
97
      - 9793fd9909c89b81479655ed560c4340
244 98
      Cache-Control:
245 99
      - max-age=0, private, must-revalidate
246 100
      X-Request-Id:
247
      - ca42b758-1089-4b9f-a815-36ab241fff7c
101
      - 90fae0d8-54cf-49a8-b24c-aa9df8808461
248 102
      X-Runtime:
249
      - '0.088146'
103
      - '0.035083'
250 104
      X-Powered-By:
251 105
      - Phusion Passenger 4.0.18
252 106
      Set-Cookie:
253
      - _session_id=1f4884dab7e605ef98c4a69bfcebcad0; path=/; secure; HttpOnly
107
      - _session_id=19e20a5610ebd4a6fb10546a5e6baa7c; path=/; secure; HttpOnly
254 108
      Etag:
255
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
109
      - '"973c5d3fa1e5326b7762aec3d6a31dde-gzip"'
256 110
      Status:
257 111
      - 200 OK
258 112
      Vary:
259 113
      - Accept-Encoding
260 114
      Content-Length:
261
      - '119'
115
      - '1339'
262 116
      Content-Type:
263 117
      - application/json; charset=utf-8
264 118
    body:
265 119
      encoding: ASCII-8BIT
266
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
267

  
268
'
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
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC4xMSJ9LHsiaWQiOiJm
137
        b3JlbWFuX2Jvb3RkaXNrIiwibmFtZSI6ImZvcmVtYW5fYm9vdGRpc2siLCJh
138
        dXRob3IiOiJEb21pbmljIENsZWFsIiwiZGVzY3JpcHRpb24iOiJQbHVnaW4g
139
        Zm9yIEZvcmVtYW4gdGhhdCBjcmVhdGVzIGlQWEUtYmFzZWQgYm9vdCBkaXNr
140
        cyB0byBwcm92aXNpb24gaG9zdHMgd2l0aG91dCB0aGUgbmVlZCBmb3IgUFhF
141
        IGluZnJhc3RydWN0dXJlLiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
142
        ZWZvcmVtYW4vZm9yZW1hbl9ib290ZGlzayIsInZlcnNpb24iOiI2LjEuMC4z
143
        In0seyJpZCI6ImZvcmVtYW5fZGlzY292ZXJ5IiwibmFtZSI6ImZvcmVtYW5f
144
        ZGlzY292ZXJ5IiwiYXV0aG9yIjoiQW1vcyBCZW5hcmksQnJ5YW4gS2Vhcm5l
145
        eSxDaGFpcm1hblR1YmVBbXAsRGFuaWVsIExvYmF0byBHYXJjw61hLERvbWlu
146
        aWMgQ2xlYWwsRXJpYyBELiBIZWxtcyxGcmFuayBXYWxsLEdyZWcgU3V0Y2xp
147
        ZmZlLEltcmkgWnZpayxKb3NlcGggTWl0Y2hlbGwgTWFnZW4sTHVrYXMgWmFw
148
        bGV0YWwsTHVrw6HFoSBaYXBsZXRhbCxNYXJlayBIdWxhbixNYXJ0aW4gQmHE
149
        jW92c2vDvSxNYXR0IEphcnZpcyxNaWNoYWVsIE1vbGwsTmljayxPaGFkIExl
150
        dnksT3JpIFJhYmluLFBldHIgQ2hhbHVwYSxQaGlyaW5jZSBQaGlsaXAsU2N1
151
        YmFmbG95ZCxTaGxvbWkgWmFkb2ssU3RlcGhlbiBCZW5qYW1pbixZYW5uIEPD
152
        qXphcmQiLCJkZXNjcmlwdGlvbiI6Ik1hYVMgRGlzY292ZXJ5IFBsdWdpbiBl
153
        bmdpbmUgZm9yIEZvcmVtYW4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90
154
        aGVmb3JlbWFuL2ZvcmVtYW5fZGlzY292ZXJ5IiwidmVyc2lvbiI6IjUuMC4w
155
        LjkifSx7ImlkIjoiZm9yZW1hbl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9k
156
        b2NrZXIiLCJhdXRob3IiOiJEYW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIs
157
        ImRlc2NyaXB0aW9uIjoiUHJvdmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNv
158
        bnRhaW5lcnMgYW5kIGltYWdlcyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0
159
        cDovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZl
160
        cnNpb24iOiIyLjAuMS4xMSJ9LHsiaWQiOiJmb3JlbWFuX2hvb2tzIiwibmFt
161
        ZSI6ImZvcmVtYW5faG9va3MiLCJhdXRob3IiOiJEb21pbmljIENsZWFsIiwi
162
        ZGVzY3JpcHRpb24iOiJQbHVnaW4gZW5naW5lIGZvciBGb3JlbWFuIHRoYXQg
163
        ZW5hYmxlcyBydW5uaW5nIGN1c3RvbSBob29rIHNjcmlwdHMgb24gRm9yZW1h
164
        biBldmVudHMiLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVmb3JlbWFu
165
        L2ZvcmVtYW5faG9va3MiLCJ2ZXJzaW9uIjoiMC4zLjExIn0seyJpZCI6ImZv
166
        cmVtYW5fb3BlbnNjYXAiLCJuYW1lIjoiZm9yZW1hbl9vcGVuc2NhcCIsImF1
167
        dGhvciI6IsWgaW1vbiBMdWthxaHDrWssU2hsb21pIFphZG9rLE1hcmVrIEh1
168
        bGFuLE9uZHJlaiBQcmF6YWsiLCJkZXNjcmlwdGlvbiI6IkZvcmVtYW4gcGx1
169
        Zy1pbiBmb3IgbWFuYWdpbmcgc2VjdXJpdHkgY29tcGxpYW5jZSByZXBvcnRz
170
        IiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL09wZW5TQ0FQL2ZvcmVtYW5f
171
        b3BlbnNjYXAiLCJ2ZXJzaW9uIjoiMC41LjMuMTgifSx7ImlkIjoiZm9yZW1h
172
        bl9yZW1vdGVfZXhlY3V0aW9uIiwibmFtZSI6ImZvcmVtYW5fcmVtb3RlX2V4
173
        ZWN1dGlvbiIsImF1dGhvciI6IkZvcmVtYW4gUmVtb3RlIEV4ZWN1dGlvbiB0
174
        ZWFtIiwiZGVzY3JpcHRpb24iOiJBIHBsdWdpbiBicmluZ2luZyByZW1vdGUg
175
        ZXhlY3V0aW9uIHRvIHRoZSBGb3JlbWFuLCBjb21wbGV0aW5nIHRoZSBjb25m
176
        aWcgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5IHdpdGggcmVtb3RlIG1hbmFn
177
        ZW1lbnQgZnVuY3Rpb25hbGl0eS4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5j
178
        b20vdGhlZm9yZW1hbi9mb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJ2ZXJz
179
        aW9uIjoiMC4zLjAuMTIifSx7ImlkIjoiZm9yZW1hbl90aGVtZV9zYXRlbGxp
180
        dGUiLCJuYW1lIjoiZm9yZW1hbl90aGVtZV9zYXRlbGxpdGUiLCJhdXRob3Ii
181
        OiJBbG9uIEdvbGRib2ltLCBTaGltb24gU3RlaW4iLCJkZXNjcmlwdGlvbiI6
182
        IlRoaXMgaXMgYSBwbHVnaW4gdGhhdCBlbmFibGVzIGJ1aWxkaW5nIGEgdGhl
183
        bWUgZm9yIEZvcmVtYW4uIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL2Fs
184
        b25nb2xkYm9pbS9mb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsInZlcnNpb24i
185
        OiIwLjEuMzYifSx7ImlkIjoia2F0ZWxsbyIsIm5hbWUiOiJrYXRlbGxvIiwi
186
        YXV0aG9yIjoiTi9BIiwiZGVzY3JpcHRpb24iOiJDb250ZW50IGFuZCBTdWJz
187
        Y3JpcHRpb24gTWFuYWdlbWVudCBwbHVnaW4gZm9yIEZvcmVtYW4iLCJ1cmwi
188
        OiJodHRwOi8vd3d3LmthdGVsbG8ub3JnIiwidmVyc2lvbiI6IjMuMC4wLjkw
189
        In0seyJpZCI6InJlZGhhdF9hY2Nlc3MiLCJuYW1lIjoicmVkaGF0X2FjY2Vz
190
        cyIsImF1dGhvciI6IkxpbmRhbmkgUGhpcmkiLCJkZXNjcmlwdGlvbiI6IlRo
191
        aXMgcGx1Z2luIGFkZHMgUmVkIEhhdCBBY2Nlc3Mga25vd2xlZGdlIGJhc2Ug
192
        c2VhcmNoLCBjYXNlIG1hbmFnZW1lbnQgYW5kIGRpYWdub3N0aWNzIHRvIEZv
193
        cmVtYW4iLCJ1cmwiOiJodHRwOi8vd3d3LmxwaGlyaS5yZWRoYXQuY29tIiwi
194
        dmVyc2lvbiI6IjEuMC4xMyJ9XQp9Cg==
269 195
    http_version: 
270
  recorded_at: Tue, 13 Dec 2016 14:46:48 GMT
196
  recorded_at: Mon, 19 Dec 2016 16:41:07 GMT
271 197
- request:
272 198
    method: get
273
    uri: https://admin:changeme@satlap.example.com/api/hosts/48/subscriptions
199
    uri: https://satlap.example.com/apidoc/v2.en.json
274 200
    body:
275 201
      encoding: US-ASCII
276 202
      string: ''
277 203
    headers:
278 204
      Accept:
279
      - application/json;version=2
280
      Accept-Encoding:
281
      - gzip, deflate
282
      User-Agent:
283
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
284
      Content-Type:
285 205
      - application/json
286
      Accept-Language:
287
      - en
288
      Host:
289
      - satlap.example.com
290
  response:
291
    status:
292
      code: 200
293
      message: OK
294
    headers:
295
      Date:
296
      - Tue, 13 Dec 2016 14:46:52 GMT
297
      Server:
298
      - Apache/2.4.6 (Red Hat Enterprise Linux)
299
      X-Frame-Options:
300
      - SAMEORIGIN
301
      X-Xss-Protection:
302
      - 1; mode=block
303
      X-Content-Type-Options:
304
      - nosniff
305
      Foreman-Version:
306
      - 1.11.0.54
307
      Foreman-Api-Version:
308
      - '2'
309
      Apipie-Checksum:
310
      - e1df2e8d43e22495b02a53b48e3b5298
311
      Cache-Control:
312
      - max-age=0, private, must-revalidate
313
      X-Request-Id:
314
      - 0bf866ad-6cf4-4380-b17e-02b293578f8a
315
      X-Runtime:
316
      - '0.089235'
317
      X-Powered-By:
318
      - Phusion Passenger 4.0.18
319
      Set-Cookie:
320
      - _session_id=ca59b42c191fe3b2af129541b6f7fddf; path=/; secure; HttpOnly
321
      Etag:
322
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
323
      Status:
324
      - 200 OK
325
      Vary:
326
      - Accept-Encoding
327
      Content-Length:
328
      - '119'
329
      Content-Type:
330
      - application/json; charset=utf-8
331
    body:
332
      encoding: ASCII-8BIT
333
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
334

  
335
'
336
    http_version: 
337
  recorded_at: Tue, 13 Dec 2016 14:46:50 GMT
338
- request:
339
    method: put
340
    uri: https://admin:changeme@satlap.example.com/api/hosts/44
341
    body:
342
      encoding: UTF-8
343
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
344
        Hat Enterprise Linux Server","arch":"x86_64","version":"6.4"}],"service_level":"Standard"}}}'
345
    headers:
346
      Accept:
347
      - application/json;version=2
348 206
      Accept-Encoding:
349 207
      - gzip, deflate
350 208
      User-Agent:
......
353 211
      - application/json
354 212
      Accept-Language:
355 213
      - en
356
      Content-Length:
357
      - '273'
358 214
      Host:
359 215
      - satlap.example.com
360 216
  response:
......
363 219
      message: OK
364 220
    headers:
365 221
      Date:
366
      - Tue, 13 Dec 2016 14:46:53 GMT
222
      - Mon, 19 Dec 2016 16:41:24 GMT
367 223
      Server:
368 224
      - Apache/2.4.6 (Red Hat Enterprise Linux)
369 225
      X-Frame-Options:
......
372 228
      - 1; mode=block
373 229
      X-Content-Type-Options:
374 230
      - nosniff
375
      Foreman-Version:
376
      - 1.11.0.54
377
      Foreman-Api-Version:
378
      - '2'
379
      Apipie-Checksum:
380
      - e1df2e8d43e22495b02a53b48e3b5298
231
      Content-Disposition:
232
      - inline; filename="v2.en.json"
233
      Content-Transfer-Encoding:
234
      - binary
381 235
      Cache-Control:
382
      - max-age=0, private, must-revalidate
236
      - private
237
      Apipie-Checksum:
238
      - 9793fd9909c89b81479655ed560c4340
383 239
      X-Request-Id:
384
      - 645f249e-3114-4de5-9057-54bf058e8099
240
      - a4e4b2a9-841b-4473-a45b-51612ea7deed
385 241
      X-Runtime:
386
      - '0.609417'
242
      - '0.004489'
387 243
      X-Powered-By:
388 244
      - Phusion Passenger 4.0.18
389
      Set-Cookie:
390
      - _session_id=92f9be913df5286443a2265f9083249b; path=/; secure; HttpOnly
391
      - request_method=PUT; path=/
392
      Etag:
393
      - '"4fc074615fb15974970319fb72b298c7-gzip"'
394 245
      Status:
395 246
      - 200 OK
396 247
      Vary:
397 248
      - Accept-Encoding
398 249
      Content-Length:
399
      - '3807'
250
      - '884926'
400 251
      Content-Type:
401
      - application/json; charset=utf-8
252
      - text/html; charset=UTF-8
402 253
    body:
403 254
      encoding: ASCII-8BIT
404
      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":"testaaa0","image_id":null,"image_name":null,"created_at":"2016-12-13
405
        14:46:44 UTC","updated_at":"2016-12-13 14:46:45 UTC","last_compile":"2016-12-13
406
        14:46:45 UTC","global_status":2,"global_status_label":"Error","organization_id":8,"organization_name":"Test
407
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
408
        not calculate errata status, ensure host is registered and katello-agent is
409
        installed","subscription_status":2,"subscription_status_label":"Unentitled","name":"testaaa0","id":44,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":44,"uuid":"083dfe96-faa3-4cb4-9884-6fed4a473258","content_view_id":2,"content_view_name":"Default
410
        Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
411
        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":44,"uuid":"083dfe96-faa3-4cb4-9884-6fed4a473258","last_checkin":"2016-12-13
412
        14:46:44 UTC","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-12-13
413
        14:46:44 UTC","activation_keys":[],"compliance_reasons":["Red Hat Enterprise
414
        Linux Server: Not supported by a valid subscription."],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f8a68b9f0b39","productId":"69","productName":"Red
415
        Hat Enterprise Linux Server","version":"6.4","arch":"x86_64","status":"red","startDate":null,"endDate":null,"created":"2016-12-13T14:46:54.111+0000","updated":"2016-12-13T14:46:54.111+0000"}]},"content_host_id":44,"parameters":[],"interfaces":[{"id":44,"name":"testaaa0","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":"testaaa0","cpu::core(s)_per_socket":"4","cpu::cpu_socket(s)":"2","memory::memtotal":"4
416
        GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"6.4","virt::is_guest":"false","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-13T14:46:45+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}}'
417
    http_version: 
418
  recorded_at: Tue, 13 Dec 2016 14:46:51 GMT
419
- request:
420
    method: get
421
    uri: https://admin:changeme@satlap.example.com/api/hosts/44/subscriptions
422
    body:
423
      encoding: US-ASCII
424
      string: ''
425
    headers:
426
      Accept:
427
      - application/json;version=2
428
      Accept-Encoding:
429
      - gzip, deflate
430
      User-Agent:
431
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
432
      Content-Type:
433
      - application/json
434
      Accept-Language:
435
      - en
436
      Host:
437
      - satlap.example.com
438
  response:
439
    status:
440
      code: 200
441
      message: OK
442
    headers:
443
      Date:
444
      - Tue, 13 Dec 2016 14:46:54 GMT
445
      Server:
446
      - Apache/2.4.6 (Red Hat Enterprise Linux)
447
      X-Frame-Options:
448
      - SAMEORIGIN
449
      X-Xss-Protection:
450
      - 1; mode=block
451
      X-Content-Type-Options:
452
      - nosniff
453
      Foreman-Version:
454
      - 1.11.0.54
455
      Foreman-Api-Version:
456
      - '2'
457
      Apipie-Checksum:
458
      - e1df2e8d43e22495b02a53b48e3b5298
459
      Cache-Control:
460
      - max-age=0, private, must-revalidate
461
      X-Request-Id:
462
      - 4b015b2c-7218-4679-a565-15aac1e674d9
463
      X-Runtime:
464
      - '0.097905'
465
      X-Powered-By:
466
      - Phusion Passenger 4.0.18
467
      Set-Cookie:
468
      - _session_id=f0de97af62c0057824341cf7356824f5; path=/; secure; HttpOnly
469
      Etag:
470
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
471
      Status:
472
      - 200 OK
473
      Vary:
474
      - Accept-Encoding
475
      Content-Length:
476
      - '119'
477
      Content-Type:
478
      - application/json; charset=utf-8
479
    body:
480
      encoding: ASCII-8BIT
481
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
482

  
483
'
484
    http_version: 
485
  recorded_at: Tue, 13 Dec 2016 14:46:51 GMT
486
- request:
487
    method: put
488
    uri: https://admin:changeme@satlap.example.com/api/hosts/44/subscriptions/add_subscriptions
489
    body:
490
      encoding: UTF-8
491
      string: '{"subscriptions":[{"id":37,"quantity":2}]}'
492
    headers:
493
      Accept:
494
      - application/json;version=2
495
      Accept-Encoding:
496
      - gzip, deflate
497
      User-Agent:
498
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
499
      Content-Type:
500
      - application/json
501
      Accept-Language:
502
      - en
503
      Content-Length:
504
      - '42'
505
      Host:
506
      - satlap.example.com
507
  response:
508
    status:
509
      code: 200
510
      message: OK
511
    headers:
512
      Date:
513
      - Tue, 13 Dec 2016 14:46:54 GMT
514
      Server:
515
      - Apache/2.4.6 (Red Hat Enterprise Linux)
516
      X-Frame-Options:
517
      - SAMEORIGIN
518
      X-Xss-Protection:
519
      - 1; mode=block
520
      X-Content-Type-Options:
521
      - nosniff
522
      Foreman-Version:
523
      - 1.11.0.54
524
      Foreman-Api-Version:
525
      - '2'
526
      Apipie-Checksum:
527
      - e1df2e8d43e22495b02a53b48e3b5298
528
      Cache-Control:
529
      - max-age=0, private, must-revalidate
530
      X-Request-Id:
531
      - 0ddd8163-3f67-4d1b-8e44-8c720ea406b5
532
      X-Runtime:
533
      - '0.605898'
534
      X-Powered-By:
535
      - Phusion Passenger 4.0.18
536
      Set-Cookie:
537
      - _session_id=7a221fd26932174b546a2b8cdf272170; path=/; secure; HttpOnly
538
      - request_method=PUT; path=/
539
      Etag:
540
      - '"f224dc5f90f20c5301d7b2b73cb05127-gzip"'
541
      Status:
542
      - 200 OK
543
      Vary:
544
      - Accept-Encoding
545
      Content-Length:
546
      - '770'
547
      Content-Type:
548
      - application/json; charset=utf-8
549
    body:
550
      encoding: ASCII-8BIT
551
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":2,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
552
        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
553
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
554

  
555
'
556
    http_version: 
557
  recorded_at: Tue, 13 Dec 2016 14:46:53 GMT
558
- request:
559
    method: put
560
    uri: https://admin:changeme@satlap.example.com/api/hosts/45
561
    body:
562
      encoding: UTF-8
563
      string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
564
        Hat Enterprise Linux Server","arch":"x86_64","version":"6.4"}],"service_level":"Standard"}}}'
565
    headers:
566
      Accept:
567
      - application/json;version=2
568
      Accept-Encoding:
569
      - gzip, deflate
570
      User-Agent:
571
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
572
      Content-Type:
573
      - application/json
574
      Accept-Language:
575
      - en
576
      Content-Length:
577
      - '273'
578
      Host:
579
      - satlap.example.com
580
  response:
581
    status:
582
      code: 200
583
      message: OK
584
    headers:
585
      Date:
586
      - Tue, 13 Dec 2016 14:46:55 GMT
587
      Server:
588
      - Apache/2.4.6 (Red Hat Enterprise Linux)
589
      X-Frame-Options:
590
      - SAMEORIGIN
591
      X-Xss-Protection:
592
      - 1; mode=block
593
      X-Content-Type-Options:
594
      - nosniff
595
      Foreman-Version:
596
      - 1.11.0.54
597
      Foreman-Api-Version:
598
      - '2'
599
      Apipie-Checksum:
600
      - e1df2e8d43e22495b02a53b48e3b5298
601
      Cache-Control:
602
      - max-age=0, private, must-revalidate
603
      X-Request-Id:
604
      - eb065135-00d7-460f-8b4c-2262284b6224
605
      X-Runtime:
606
      - '0.574591'
607
      X-Powered-By:
608
      - Phusion Passenger 4.0.18
609
      Set-Cookie:
610
      - _session_id=4818d1076834cfdc6ab4d5f43609c9bb; path=/; secure; HttpOnly
611
      - request_method=PUT; path=/
612
      Etag:
613
      - '"966495049bfd81736fb864ce9e30039d-gzip"'
614
      Status:
615
      - 200 OK
616
      Vary:
617
      - Accept-Encoding
618
      Content-Length:
619
      - '3807'
620
      Content-Type:
621
      - application/json; charset=utf-8
622
    body:
623
      encoding: ASCII-8BIT
624
      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":"testaaa1","image_id":null,"image_name":null,"created_at":"2016-12-13
625
        14:46:46 UTC","updated_at":"2016-12-13 14:46:47 UTC","last_compile":"2016-12-13
626
        14:46:47 UTC","global_status":2,"global_status_label":"Error","organization_id":8,"organization_name":"Test
627
        Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could
628
        not calculate errata status, ensure host is registered and katello-agent is
629
        installed","subscription_status":2,"subscription_status_label":"Unentitled","name":"testaaa1","id":45,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":45,"uuid":"2f29d036-30bf-4324-9924-b5c7d3a3bfb1","content_view_id":2,"content_view_name":"Default
630
        Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
631
        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":45,"uuid":"2f29d036-30bf-4324-9924-b5c7d3a3bfb1","last_checkin":"2016-12-13
632
        14:46:46 UTC","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-12-13
633
        14:46:46 UTC","activation_keys":[],"compliance_reasons":["Red Hat Enterprise
634
        Linux Server: Not supported by a valid subscription."],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"4028f99158f378890158f8a693170b40","productId":"69","productName":"Red
635
        Hat Enterprise Linux Server","version":"6.4","arch":"x86_64","status":"red","startDate":null,"endDate":null,"created":"2016-12-13T14:46:56.023+0000","updated":"2016-12-13T14:46:56.023+0000"}]},"content_host_id":45,"parameters":[],"interfaces":[{"id":45,"name":"testaaa1","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":"testaaa1","cpu::core(s)_per_socket":"4","cpu::cpu_socket(s)":"2","memory::memtotal":"4
636
        GB","uname::machine":"x86_64","distribution::name":"RHEL","distribution::version":"6.4","virt::is_guest":"false","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-12-13T14:46:47+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}}'
637
    http_version: 
638
  recorded_at: Tue, 13 Dec 2016 14:46:53 GMT
639
- request:
640
    method: get
641
    uri: https://admin:changeme@satlap.example.com/api/hosts/45/subscriptions
642
    body:
643
      encoding: US-ASCII
644
      string: ''
645
    headers:
646
      Accept:
647
      - application/json;version=2
648
      Accept-Encoding:
649
      - gzip, deflate
650
      User-Agent:
651
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
652
      Content-Type:
653
      - application/json
654
      Accept-Language:
655
      - en
656
      Host:
657
      - satlap.example.com
658
  response:
659
    status:
660
      code: 200
661
      message: OK
662
    headers:
663
      Date:
664
      - Tue, 13 Dec 2016 14:46:56 GMT
665
      Server:
666
      - Apache/2.4.6 (Red Hat Enterprise Linux)
667
      X-Frame-Options:
668
      - SAMEORIGIN
669
      X-Xss-Protection:
670
      - 1; mode=block
671
      X-Content-Type-Options:
672
      - nosniff
673
      Foreman-Version:
674
      - 1.11.0.54
675
      Foreman-Api-Version:
676
      - '2'
677
      Apipie-Checksum:
678
      - e1df2e8d43e22495b02a53b48e3b5298
679
      Cache-Control:
680
      - max-age=0, private, must-revalidate
681
      X-Request-Id:
682
      - 80087593-84bb-48c2-af2a-5e5e46f89d02
683
      X-Runtime:
684
      - '0.241091'
685
      X-Powered-By:
686
      - Phusion Passenger 4.0.18
687
      Set-Cookie:
688
      - _session_id=3f3229428209f108a7d45379be009608; path=/; secure; HttpOnly
689
      Etag:
690
      - '"f224dc5f90f20c5301d7b2b73cb05127-gzip"'
691
      Status:
692
      - 200 OK
693
      Vary:
694
      - Accept-Encoding
695
      Content-Length:
696
      - '770'
697
      Content-Type:
698
      - application/json; charset=utf-8
699
    body:
700
      encoding: ASCII-8BIT
701
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":2,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
702
        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
703
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
704

  
705
'
706
    http_version: 
707
  recorded_at: Tue, 13 Dec 2016 14:46:54 GMT
708
- request:
709
    method: put
710
    uri: https://admin:changeme@satlap.example.com/api/hosts/45/subscriptions/remove_subscriptions
711
    body:
712
      encoding: UTF-8
713
      string: '{"subscriptions":[{"id":37,"quantity":2}]}'
714
    headers:
715
      Accept:
716
      - application/json;version=2
717
      Accept-Encoding:
718
      - gzip, deflate
719
      User-Agent:
720
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
721
      Content-Type:
722
      - application/json
723
      Accept-Language:
724
      - en
725
      Content-Length:
726
      - '42'
727
      Host:
728
      - satlap.example.com
729
  response:
730
    status:
731
      code: 200
732
      message: OK
733
    headers:
734
      Date:
735
      - Tue, 13 Dec 2016 14:46:56 GMT
736
      Server:
737
      - Apache/2.4.6 (Red Hat Enterprise Linux)
738
      X-Frame-Options:
739
      - SAMEORIGIN
740
      X-Xss-Protection:
741
      - 1; mode=block
742
      X-Content-Type-Options:
743
      - nosniff
744
      Foreman-Version:
745
      - 1.11.0.54
746
      Foreman-Api-Version:
747
      - '2'
748
      Apipie-Checksum:
749
      - e1df2e8d43e22495b02a53b48e3b5298
750
      Cache-Control:
751
      - max-age=0, private, must-revalidate
752
      X-Request-Id:
753
      - 3ede14f6-56ed-4c8f-9b8f-e1d1c4e21424
754
      X-Runtime:
755
      - '0.931493'
756
      X-Powered-By:
757
      - Phusion Passenger 4.0.18
758
      Set-Cookie:
759
      - _session_id=e72b06401ad969a1ba0273d2ce181701; path=/; secure; HttpOnly
760
      - request_method=PUT; path=/
761
      Etag:
762
      - '"f7106e0cbfd625023e8fe115f5049a15-gzip"'
763
      Status:
764
      - 200 OK
765
      Vary:
766
      - Accept-Encoding
767
      Content-Length:
768
      - '770'
769
      Content-Type:
770
      - application/json; charset=utf-8
771
    body:
772
      encoding: ASCII-8BIT
773
      string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":2,"id":37,"cp_id":"4028f99158f378890158f7d685490550","subscription_id":21,"name":"Red
774
        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":196,"quantity":200,"consumed":4,"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
775
        Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
776

  
777
'
778
    http_version: 
779
  recorded_at: Tue, 13 Dec 2016 14:46:55 GMT
780
- request:
781
    method: put
782
    uri: https://admin:changeme@satlap.example.com/api/hosts/45/subscriptions/add_subscriptions
783
    body:
784
      encoding: UTF-8
785
      string: '{"subscriptions":[{"id":37,"quantity":2}]}'
786
    headers:
787
      Accept:
788
      - application/json;version=2
789
      Accept-Encoding:
790
      - gzip, deflate
791
      User-Agent:
792
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
793
      Content-Type:
794
      - application/json
795
      Accept-Language:
796
      - en
797
      Content-Length:
798
      - '42'
799
      Host:
800
      - satlap.example.com
801
  response:
802
    status:
803
      code: 200
804
      message: OK
805
    headers:
806
      Date:
807
      - Tue, 13 Dec 2016 14:46:58 GMT
808
      Server:
809
      - Apache/2.4.6 (Red Hat Enterprise Linux)
810
      X-Frame-Options:
811
      - SAMEORIGIN
812
      X-Xss-Protection:
813
      - 1; mode=block
814
      X-Content-Type-Options:
815
      - nosniff
816
      Foreman-Version:
817
      - 1.11.0.54
818
      Foreman-Api-Version:
819
      - '2'
820
      Apipie-Checksum:
821
      - e1df2e8d43e22495b02a53b48e3b5298
822
      Cache-Control:
823
      - max-age=0, private, must-revalidate
824
      X-Request-Id:
825
      - a2dfc3cd-115b-4b73-86af-1d28a4df6e82
826
      X-Runtime:
827
      - '0.870707'
828
      X-Powered-By:
829
      - Phusion Passenger 4.0.18
830
      Set-Cookie:
831
      - _session_id=2dad41d30bc23893b808bfe99bd1521c; path=/; secure; HttpOnly
832
      - request_method=PUT; path=/
833
      Etag:
834
      - '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
835
      Status:
836
      - 200 OK
837
      Vary:
838
      - Accept-Encoding
839
      Content-Length:
840
      - '119'
841
      Content-Type:
842
      - application/json; charset=utf-8
843
    body:
844
      encoding: ASCII-8BIT
845
      string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
846

  
847
'
848
    http_version: 
849
  recorded_at: Tue, 13 Dec 2016 14:46:56 GMT
850
- request:
851
    method: delete
852
    uri: https://admin:changeme@satlap.example.com/api/hosts/44
853
    body:
854
      encoding: US-ASCII
855
      string: ''
856
    headers:
857
      Accept:
858
      - application/json;version=2
859
      Accept-Encoding:
860
      - gzip, deflate
861
      User-Agent:
862
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
863
      Content-Type:
864
      - application/json
865
      Accept-Language:
866
      - en
867
      Host:
868
      - satlap.example.com
869
  response:
870
    status:
871
      code: 200
872
      message: OK
873
    headers:
874
      Date:
875
      - Tue, 13 Dec 2016 14:46:59 GMT
876
      Server:
877
      - Apache/2.4.6 (Red Hat Enterprise Linux)
878
      X-Frame-Options:
879
      - SAMEORIGIN
880
      X-Xss-Protection:
881
      - 1; mode=block
882
      X-Content-Type-Options:
883
      - nosniff
884
      Foreman-Version:
885
      - 1.11.0.54
886
      Foreman-Api-Version:
887
      - '2'
888
      Apipie-Checksum:
889
      - e1df2e8d43e22495b02a53b48e3b5298
890
      Cache-Control:
891
      - max-age=0, private, must-revalidate
892
      X-Request-Id:
893
      - 85b346fa-ba58-47c3-bd3c-580c451d5e87
894
      X-Runtime:
895
      - '1.040763'
896
      X-Powered-By:
897
      - Phusion Passenger 4.0.18
898
      Set-Cookie:
899
      - _session_id=6191fd5e1439ebbdbd8e3d31f07bc60e; path=/; secure; HttpOnly
900
      - request_method=DELETE; path=/
901
      Etag:
902
      - '"216589d3bd75d47e3651d6b75bc9818b-gzip"'
903
      Status:
904
      - 200 OK
905
      Vary:
906
      - Accept-Encoding
907
      Content-Length:
908
      - '1356'
909
      Content-Type:
910
      - application/json; charset=utf-8
911
    body:
912
      encoding: ASCII-8BIT
913
      string: '{"id":44,"name":"testaaa0","last_compile":"2016-12-13T14:46:45.000Z","last_report":null,"updated_at":"2016-12-13T14:46:55.062Z","created_at":"2016-12-13T14:46:44.452Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":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,"puppet_proxy_id":null,"certname":"testaaa0","image_id":null,"organization_id":8,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","content_source_id":null,"grub_pass":"","discovery_rule_id":null,"content_view_id":null,"lifecycle_environment_id":null,"global_status":0,"lookup_value_matcher":"fqdn=testaaa0","openscap_proxy_id":null,"content_facet_attributes":{"id":44,"host_id":44,"uuid":"083dfe96-faa3-4cb4-9884-6fed4a473258","content_view_id":2,"lifecycle_environment_id":2,"kickstart_repository_id":null},"subscription_facet_attributes":{"id":44,"host_id":44,"uuid":"083dfe96-faa3-4cb4-9884-6fed4a473258","last_checkin":"2016-12-13T14:46:44.471Z","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-12-13T14:46:44.653Z"}}'
914
    http_version: 
915
  recorded_at: Tue, 13 Dec 2016 14:46:57 GMT
916
- request:
917
    method: delete
918
    uri: https://admin:changeme@satlap.example.com/api/hosts/45
919
    body:
920
      encoding: US-ASCII
921
      string: ''
922
    headers:
923
      Accept:
924
      - application/json;version=2
925
      Accept-Encoding:
926
      - gzip, deflate
927
      User-Agent:
928
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
929
      Content-Type:
930
      - application/json
931
      Accept-Language:
932
      - en
933
      Host:
934
      - satlap.example.com
935
  response:
936
    status:
937
      code: 200
938
      message: OK
939
    headers:
940
      Date:
941
      - Tue, 13 Dec 2016 14:47:00 GMT
942
      Server:
943
      - Apache/2.4.6 (Red Hat Enterprise Linux)
944
      X-Frame-Options:
945
      - SAMEORIGIN
946
      X-Xss-Protection:
947
      - 1; mode=block
948
      X-Content-Type-Options:
949
      - nosniff
950
      Foreman-Version:
951
      - 1.11.0.54
952
      Foreman-Api-Version:
953
      - '2'
954
      Apipie-Checksum:
955
      - e1df2e8d43e22495b02a53b48e3b5298
956
      Cache-Control:
957
      - max-age=0, private, must-revalidate
958
      X-Request-Id:
959
      - 510b2e29-26df-49a9-99d1-6bb2284853ad
960
      X-Runtime:
961
      - '0.931298'
962
      X-Powered-By:
963
      - Phusion Passenger 4.0.18
964
      Set-Cookie:
965
      - _session_id=44ae4eade66a8cad8ff818e700863aaa; path=/; secure; HttpOnly
966
      - request_method=DELETE; path=/
967
      Etag:
968
      - '"f686d18069979257e856c4a9ae2ed3df-gzip"'
969
      Status:
970
      - 200 OK
971
      Vary:
972
      - Accept-Encoding
973
      Content-Length:
974
      - '1356'
975
      Content-Type:
976
      - application/json; charset=utf-8
977
    body:
978
      encoding: ASCII-8BIT
979
      string: '{"id":45,"name":"testaaa1","last_compile":"2016-12-13T14:46:47.000Z","last_report":null,"updated_at":"2016-12-13T14:46:59.073Z","created_at":"2016-12-13T14:46:46.153Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":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,"puppet_proxy_id":null,"certname":"testaaa1","image_id":null,"organization_id":8,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","content_source_id":null,"grub_pass":"","discovery_rule_id":null,"content_view_id":null,"lifecycle_environment_id":null,"global_status":0,"lookup_value_matcher":"fqdn=testaaa1","openscap_proxy_id":null,"content_facet_attributes":{"id":45,"host_id":45,"uuid":"2f29d036-30bf-4324-9924-b5c7d3a3bfb1","content_view_id":2,"lifecycle_environment_id":2,"kickstart_repository_id":null},"subscription_facet_attributes":{"id":45,"host_id":45,"uuid":"2f29d036-30bf-4324-9924-b5c7d3a3bfb1","last_checkin":"2016-12-13T14:46:46.173Z","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-12-13T14:46:46.353Z"}}'
980
    http_version: 
981
  recorded_at: Tue, 13 Dec 2016 14:46:58 GMT
982
- request:
983
    method: delete
984
    uri: https://admin:changeme@satlap.example.com/api/hosts/46
985
    body:
986
      encoding: US-ASCII
987
      string: ''
988
    headers:
989
      Accept:
990
      - application/json;version=2
991
      Accept-Encoding:
992
      - gzip, deflate
993
      User-Agent:
994
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
995
      Content-Type:
996
      - application/json
997
      Accept-Language:
998
      - en
999
      Host:
1000
      - satlap.example.com
1001
  response:
1002
    status:
1003
      code: 200
1004
      message: OK
1005
    headers:
1006
      Date:
1007
      - Tue, 13 Dec 2016 14:47:01 GMT
1008
      Server:
1009
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1010
      X-Frame-Options:
1011
      - SAMEORIGIN
1012
      X-Xss-Protection:
1013
      - 1; mode=block
1014
      X-Content-Type-Options:
1015
      - nosniff
1016
      Foreman-Version:
1017
      - 1.11.0.54
1018
      Foreman-Api-Version:
1019
      - '2'
1020
      Apipie-Checksum:
1021
      - e1df2e8d43e22495b02a53b48e3b5298
1022
      Cache-Control:
1023
      - max-age=0, private, must-revalidate
1024
      X-Request-Id:
1025
      - 5b1c6677-8ad1-4d1e-b121-565859acbd95
1026
      X-Runtime:
1027
      - '0.902237'
1028
      X-Powered-By:
1029
      - Phusion Passenger 4.0.18
1030
      Set-Cookie:
1031
      - _session_id=775e0483e814d8f4b07fedf8f871b5c6; path=/; secure; HttpOnly
1032
      - request_method=DELETE; path=/
1033
      Etag:
1034
      - '"7c5f017ac0f407f18b8151e70987de37-gzip"'
1035
      Status:
1036
      - 200 OK
1037
      Vary:
1038
      - Accept-Encoding
1039
      Content-Length:
1040
      - '1355'
1041
      Content-Type:
1042
      - application/json; charset=utf-8
1043
    body:
1044
      encoding: ASCII-8BIT
1045
      string: '{"id":46,"name":"testbbb0","last_compile":"2016-12-13T14:46:49.000Z","last_report":null,"updated_at":"2016-12-13T14:46:49.286Z","created_at":"2016-12-13T14:46:47.880Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":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,"puppet_proxy_id":null,"certname":"testbbb0","image_id":null,"organization_id":8,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","content_source_id":null,"grub_pass":"","discovery_rule_id":null,"content_view_id":null,"lifecycle_environment_id":null,"global_status":2,"lookup_value_matcher":"fqdn=testbbb0","openscap_proxy_id":null,"content_facet_attributes":{"id":46,"host_id":46,"uuid":"8041a9e9-c5ee-48be-babd-8ae7699cc8cc","content_view_id":2,"lifecycle_environment_id":2,"kickstart_repository_id":null},"subscription_facet_attributes":{"id":46,"host_id":46,"uuid":"8041a9e9-c5ee-48be-babd-8ae7699cc8cc","last_checkin":"2016-12-13T14:46:47.899Z","service_level":"Premium","release_version":null,"autoheal":true,"registered_at":"2016-12-13T14:46:48.110Z"}}'
1046
    http_version: 
1047
  recorded_at: Tue, 13 Dec 2016 14:47:00 GMT
1048
- request:
1049
    method: delete
1050
    uri: https://admin:changeme@satlap.example.com/api/hosts/47
1051
    body:
1052
      encoding: US-ASCII
1053
      string: ''
1054
    headers:
1055
      Accept:
1056
      - application/json;version=2
1057
      Accept-Encoding:
1058
      - gzip, deflate
1059
      User-Agent:
1060
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1061
      Content-Type:
1062
      - application/json
1063
      Accept-Language:
1064
      - en
1065
      Host:
1066
      - satlap.example.com
1067
  response:
1068
    status:
1069
      code: 200
1070
      message: OK
1071
    headers:
1072
      Date:
1073
      - Tue, 13 Dec 2016 14:47:02 GMT
1074
      Server:
1075
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1076
      X-Frame-Options:
1077
      - SAMEORIGIN
1078
      X-Xss-Protection:
1079
      - 1; mode=block
1080
      X-Content-Type-Options:
1081
      - nosniff
1082
      Foreman-Version:
1083
      - 1.11.0.54
1084
      Foreman-Api-Version:
1085
      - '2'
1086
      Apipie-Checksum:
1087
      - e1df2e8d43e22495b02a53b48e3b5298
1088
      Cache-Control:
1089
      - max-age=0, private, must-revalidate
1090
      X-Request-Id:
1091
      - 349e4e46-cbf0-407a-a911-1e18ccf76cd5
1092
      X-Runtime:
1093
      - '0.784654'
1094
      X-Powered-By:
1095
      - Phusion Passenger 4.0.18
1096
      Set-Cookie:
1097
      - _session_id=af43552357fe88914c5f5926f6f2c041; path=/; secure; HttpOnly
1098
      - request_method=DELETE; path=/
1099
      Etag:
1100
      - '"200e3594c6700f80b7e11cfa7c32cd77-gzip"'
1101
      Status:
1102
      - 200 OK
1103
      Vary:
1104
      - Accept-Encoding
1105
      Content-Length:
1106
      - '1355'
1107
      Content-Type:
1108
      - application/json; charset=utf-8
1109
    body:
1110
      encoding: ASCII-8BIT
1111
      string: '{"id":47,"name":"testbbb1","last_compile":"2016-12-13T14:46:50.000Z","last_report":null,"updated_at":"2016-12-13T14:46:50.886Z","created_at":"2016-12-13T14:46:49.650Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":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,"puppet_proxy_id":null,"certname":"testbbb1","image_id":null,"organization_id":8,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","content_source_id":null,"grub_pass":"","discovery_rule_id":null,"content_view_id":null,"lifecycle_environment_id":null,"global_status":2,"lookup_value_matcher":"fqdn=testbbb1","openscap_proxy_id":null,"content_facet_attributes":{"id":47,"host_id":47,"uuid":"e625047c-4c4f-4dc1-9ab7-a0efc4898dfb","content_view_id":2,"lifecycle_environment_id":2,"kickstart_repository_id":null},"subscription_facet_attributes":{"id":47,"host_id":47,"uuid":"e625047c-4c4f-4dc1-9ab7-a0efc4898dfb","last_checkin":"2016-12-13T14:46:49.667Z","service_level":"Premium","release_version":null,"autoheal":true,"registered_at":"2016-12-13T14:46:49.851Z"}}'
1112
    http_version: 
1113
  recorded_at: Tue, 13 Dec 2016 14:47:01 GMT
1114
- request:
1115
    method: delete
1116
    uri: https://admin:changeme@satlap.example.com/api/hosts/48
1117
    body:
1118
      encoding: US-ASCII
1119
      string: ''
1120
    headers:
1121
      Accept:
1122
      - application/json;version=2
1123
      Accept-Encoding:
1124
      - gzip, deflate
1125
      User-Agent:
1126
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
1127
      Content-Type:
1128
      - application/json
1129
      Accept-Language:
1130
      - en
1131
      Host:
1132
      - satlap.example.com
1133
  response:
1134
    status:
1135
      code: 200
1136
      message: OK
1137
    headers:
1138
      Date:
1139
      - Tue, 13 Dec 2016 14:47:03 GMT
1140
      Server:
1141
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1142
      X-Frame-Options:
1143
      - SAMEORIGIN
1144
      X-Xss-Protection:
1145
      - 1; mode=block
1146
      X-Content-Type-Options:
1147
      - nosniff
1148
      Foreman-Version:
1149
      - 1.11.0.54
1150
      Foreman-Api-Version:
1151
      - '2'
1152
      Apipie-Checksum:
1153
      - e1df2e8d43e22495b02a53b48e3b5298
1154
      Cache-Control:
1155
      - max-age=0, private, must-revalidate
1156
      X-Request-Id:
1157
      - 909a78d0-c337-4efe-a389-ded3ea7f9b5c
1158
      X-Runtime:
1159
      - '0.803723'
1160
      X-Powered-By:
1161
      - Phusion Passenger 4.0.18
1162
      Set-Cookie:
1163
      - _session_id=68c5a32b18ce54f8d3252ef1d12653a7; path=/; secure; HttpOnly
1164
      - request_method=DELETE; path=/
1165
      Etag:
1166
      - '"7dbefa2d07018bb415d891be8ade9bd4-gzip"'
1167
      Status:
1168
      - 200 OK
1169
      Vary:
1170
      - Accept-Encoding
1171
      Content-Length:
1172
      - '1355'
1173
      Content-Type:
1174
      - application/json; charset=utf-8
1175
    body:
1176
      encoding: ASCII-8BIT
1177
      string: '{"id":48,"name":"testbbb2","last_compile":"2016-12-13T14:46:52.000Z","last_report":null,"updated_at":"2016-12-13T14:46:52.358Z","created_at":"2016-12-13T14:46:51.230Z","root_pass":null,"architecture_id":null,"operatingsystem_id":null,"environment_id":null,"ptable_id":null,"medium_id":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,"puppet_proxy_id":null,"certname":"testbbb2","image_id":null,"organization_id":8,"location_id":2,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","content_source_id":null,"grub_pass":"","discovery_rule_id":null,"content_view_id":null,"lifecycle_environment_id":null,"global_status":2,"lookup_value_matcher":"fqdn=testbbb2","openscap_proxy_id":null,"content_facet_attributes":{"id":48,"host_id":48,"uuid":"d0069aae-411b-44af-8cd9-de5d9abc8353","content_view_id":2,"lifecycle_environment_id":2,"kickstart_repository_id":null},"subscription_facet_attributes":{"id":48,"host_id":48,"uuid":"d0069aae-411b-44af-8cd9-de5d9abc8353","last_checkin":"2016-12-13T14:46:51.247Z","service_level":"Premium","release_version":null,"autoheal":true,"registered_at":"2016-12-13T14:46:51.427Z"}}'
1178
    http_version: 
1179
  recorded_at: Tue, 13 Dec 2016 14:47:02 GMT
1180
- request:
1181
    method: get
1182
    uri: https://admin:changeme@satlap.example.com/api/status
1183
    body:
1184
      encoding: US-ASCII
1185
      string: ''
1186
    headers:
1187
      Accept-Encoding:
1188
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1189
      Accept:
1190
      - "*/*"
1191
      User-Agent:
1192
      - Ruby
1193
      Host:
1194
      - satlap.example.com
1195
  response:
1196
    status:
1197
      code: 200
1198
      message: OK
1199
    headers:
1200
      Date:
1201
      - Wed, 14 Dec 2016 13:46:28 GMT
1202
      Server:
1203
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1204
      X-Frame-Options:
1205
      - SAMEORIGIN
1206
      X-Xss-Protection:
1207
      - 1; mode=block
1208
      X-Content-Type-Options:
1209
      - nosniff
1210
      Foreman-Version:
1211
      - 1.11.0.54
1212
      Foreman-Api-Version:
1213
      - '2'
1214
      Apipie-Checksum:
1215
      - e1df2e8d43e22495b02a53b48e3b5298
1216
      Cache-Control:
1217
      - max-age=0, private, must-revalidate
1218
      X-Request-Id:
1219
      - e5c8d7ce-3301-430e-95cc-a696de972fce
1220
      X-Runtime:
1221
      - '0.037981'
1222
      X-Powered-By:
1223
      - Phusion Passenger 4.0.18
1224
      Set-Cookie:
1225
      - _session_id=3cc6b59afc34486be5990b2ae2e708e3; path=/; secure; HttpOnly
1226
      Etag:
1227
      - '"8e3341d0a4cc328651f7391aed11fef8"'
1228
      Status:
1229
      - 200 OK
1230
      Content-Length:
1231
      - '66'
1232
      Content-Type:
1233
      - application/json; charset=utf-8
1234
    body:
1235
      encoding: UTF-8
1236
      string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
1237
    http_version: 
1238
  recorded_at: Wed, 14 Dec 2016 13:46:23 GMT
1239
- request:
1240
    method: get
1241
    uri: https://admin:changeme@satlap.example.com/api/v2/plugins
1242
    body:
1243
      encoding: US-ASCII
1244
      string: ''
1245
    headers:
1246
      Accept-Encoding:
1247
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1248
      Accept:
1249
      - "*/*"
1250
      User-Agent:
1251
      - Ruby
1252
      Host:
1253
      - satlap.example.com
1254
  response:
1255
    status:
1256
      code: 200
1257
      message: OK
1258
    headers:
1259
      Date:
1260
      - Wed, 14 Dec 2016 13:46:28 GMT
1261
      Server:
1262
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1263
      X-Frame-Options:
1264
      - SAMEORIGIN
1265
      X-Xss-Protection:
1266
      - 1; mode=block
1267
      X-Content-Type-Options:
1268
      - nosniff
1269
      Foreman-Version:
1270
      - 1.11.0.54
1271
      Foreman-Api-Version:
1272
      - '2'
1273
      Apipie-Checksum:
1274
      - e1df2e8d43e22495b02a53b48e3b5298
1275
      Cache-Control:
1276
      - max-age=0, private, must-revalidate
1277
      X-Request-Id:
1278
      - 8b3830ab-0156-478b-a3bc-2730f0b38ae7
1279
      X-Runtime:
1280
      - '0.044179'
1281
      X-Powered-By:
1282
      - Phusion Passenger 4.0.18
1283
      Set-Cookie:
1284
      - _session_id=0204a1e3363871bb7b2255f3e970fa6b; path=/; secure; HttpOnly
1285
      Etag:
1286
      - '"077fb42a553a8a1a1bbf6262a2cc79ec-gzip"'
1287
      Status:
1288
      - 200 OK
1289
      Vary:
1290
      - Accept-Encoding
1291
      Content-Length:
1292
      - '1338'
1293
      Content-Type:
1294
      - application/json; charset=utf-8
1295
    body:
1296
      encoding: ASCII-8BIT
1297
      string: !binary |-
1298
        ewogICJ0b3RhbCI6IDEwLAogICJzdWJ0b3RhbCI6IDEwLAogICJwYWdlIjog
1299
        MSwKICAicGVyX3BhZ2UiOiAyMCwKICAic2VhcmNoIjogbnVsbCwKICAic29y
1300
        dCI6IHsKICAgICJieSI6IG51bGwsCiAgICAib3JkZXIiOiBudWxsCiAgfSwK
1301
        ICAicmVzdWx0cyI6IFt7ImlkIjoiZm9yZW1hbi10YXNrcyIsIm5hbWUiOiJm
1302
        b3JlbWFuLXRhc2tzIiwiYXV0aG9yIjoiSXZhbiBOZcSNYXMiLCJkZXNjcmlw
1303
        dGlvbiI6IlRoZSBnb2FsIG9mIHRoaXMgcGx1Z2luIGlzIHRvIHVuaWZ5IHRo
1304
        ZSB3YXkgb2Ygc2hvd2luZyB0YXNrIHN0YXR1c2VzIGFjcm9zcyB0aGUgRm9y
1305
        ZW1hbiBpbnN0YW5jZS5cbkl0IGRlZmluZXMgVGFzayBtb2RlbCBmb3Iga2Vl
1306
        cGluZyB0aGUgaW5mb3JtYXRpb24gYWJvdXQgdGhlIHRhc2tzIGFuZCBMb2Nr
1307
        IGZvciBhc3NpZ25pbmcgdGhlIHRhc2tzXG50byByZXNvdXJjZXMuIFRoZSBs
1308
        b2NraW5nIGFsbG93cyBkZWFsaW5nIHdpdGggcHJldmVudGluZyBtdWx0aXBs
1309
        ZSBjb2xsaWRpbmcgdGFza3MgdG8gYmUgcnVuIG9uIHRoZVxuc2FtZSByZXNv
1310
        dXJjZS4gSXQgYWxzbyBvcHRpb25hbGx5IHByb3ZpZGVzIER5bmZsb3cgaW5m
1311
        cmFzdHJ1Y3R1cmUgZm9yIHVzaW5nIGl0IGZvciBtYW5hZ2luZyB0aGUgdGFz
1312
        a3MuXG4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9m
1313
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC45In0seyJpZCI6ImZv
1314
        cmVtYW5fYm9vdGRpc2siLCJuYW1lIjoiZm9yZW1hbl9ib290ZGlzayIsImF1
1315
        dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJkZXNjcmlwdGlvbiI6IlBsdWdpbiBm
1316
        b3IgRm9yZW1hbiB0aGF0IGNyZWF0ZXMgaVBYRS1iYXNlZCBib290IGRpc2tz
1317
        IHRvIHByb3Zpc2lvbiBob3N0cyB3aXRob3V0IHRoZSBuZWVkIGZvciBQWEUg
1318
        aW5mcmFzdHJ1Y3R1cmUuIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
1319
        Zm9yZW1hbi9mb3JlbWFuX2Jvb3RkaXNrIiwidmVyc2lvbiI6IjYuMS4wLjMi
1320
        fSx7ImlkIjoiZm9yZW1hbl9kaXNjb3ZlcnkiLCJuYW1lIjoiZm9yZW1hbl9k
1321
        aXNjb3ZlcnkiLCJhdXRob3IiOiJBbW9zIEJlbmFyaSxCcnlhbiBLZWFybmV5
1322
        LENoYWlybWFuVHViZUFtcCxEYW5pZWwgTG9iYXRvIEdhcmPDrWEsRG9taW5p
1323
        YyBDbGVhbCxFcmljIEQuIEhlbG1zLEZyYW5rIFdhbGwsR3JlZyBTdXRjbGlm
1324
        ZmUsSW1yaSBadmlrLEpvc2VwaCBNaXRjaGVsbCBNYWdlbixMdWthcyBaYXBs
1325
        ZXRhbCxMdWvDocWhIFphcGxldGFsLE1hcmVrIEh1bGFuLE1hcnRpbiBCYcSN
1326
        b3Zza8O9LE1hdHQgSmFydmlzLE1pY2hhZWwgTW9sbCxOaWNrLE9oYWQgTGV2
1327
        eSxPcmkgUmFiaW4sUGV0ciBDaGFsdXBhLFBoaXJpbmNlIFBoaWxpcCxTY3Vi
1328
        YWZsb3lkLFNobG9taSBaYWRvayxTdGVwaGVuIEJlbmphbWluLFlhbm4gQ8Op
1329
        emFyZCIsImRlc2NyaXB0aW9uIjoiTWFhUyBEaXNjb3ZlcnkgUGx1Z2luIGVu
1330
        Z2luZSBmb3IgRm9yZW1hbiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
1331
        ZWZvcmVtYW4vZm9yZW1hbl9kaXNjb3ZlcnkiLCJ2ZXJzaW9uIjoiNS4wLjAu
1332
        OSJ9LHsiaWQiOiJmb3JlbWFuX2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2Rv
1333
        Y2tlciIsImF1dGhvciI6IkRhbmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwi
1334
        ZGVzY3JpcHRpb24iOiJQcm92aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29u
1335
        dGFpbmVycyBhbmQgaW1hZ2VzIGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRw
1336
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVy
1337
        c2lvbiI6IjIuMC4xLjExIn0seyJpZCI6ImZvcmVtYW5faG9va3MiLCJuYW1l
1338
        IjoiZm9yZW1hbl9ob29rcyIsImF1dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJk
1339
        ZXNjcmlwdGlvbiI6IlBsdWdpbiBlbmdpbmUgZm9yIEZvcmVtYW4gdGhhdCBl
1340
        bmFibGVzIHJ1bm5pbmcgY3VzdG9tIGhvb2sgc2NyaXB0cyBvbiBGb3JlbWFu
1341
        IGV2ZW50cyIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4v
1342
        Zm9yZW1hbl9ob29rcyIsInZlcnNpb24iOiIwLjMuMTEifSx7ImlkIjoiZm9y
1343
        ZW1hbl9vcGVuc2NhcCIsIm5hbWUiOiJmb3JlbWFuX29wZW5zY2FwIiwiYXV0
1344
        aG9yIjoixaBpbW9uIEx1a2HFocOtayxTaGxvbWkgWmFkb2ssTWFyZWsgSHVs
1345
        YW4sT25kcmVqIFByYXphayIsImRlc2NyaXB0aW9uIjoiRm9yZW1hbiBwbHVn
1346
        LWluIGZvciBtYW5hZ2luZyBzZWN1cml0eSBjb21wbGlhbmNlIHJlcG9ydHMi
1347
        LCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vT3BlblNDQVAvZm9yZW1hbl9v
1348
        cGVuc2NhcCIsInZlcnNpb24iOiIwLjUuMy4xOCJ9LHsiaWQiOiJmb3JlbWFu
1349
        X3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1hbl9yZW1vdGVfZXhl
1350
        Y3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUgRXhlY3V0aW9uIHRl
1351
        YW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5naW5nIHJlbW90ZSBl
1352
        eGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRpbmcgdGhlIGNvbmZp
1353
        ZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCByZW1vdGUgbWFuYWdl
1354
        bWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBzOi8vZ2l0aHViLmNv
1355
        bS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsInZlcnNp
1356
        b24iOiIwLjMuMC4xMiJ9LHsiaWQiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0
1357
        ZSIsIm5hbWUiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsImF1dGhvciI6
1358
        IkFsb24gR29sZGJvaW0sIFNoaW1vbiBTdGVpbiIsImRlc2NyaXB0aW9uIjoi
1359
        VGhpcyBpcyBhIHBsdWdpbiB0aGF0IGVuYWJsZXMgYnVpbGRpbmcgYSB0aGVt
1360
        ZSBmb3IgRm9yZW1hbi4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vYWxv
1361
        bmdvbGRib2ltL2ZvcmVtYW5fdGhlbWVfc2F0ZWxsaXRlIiwidmVyc2lvbiI6
1362
        IjAuMS4zMyJ9LHsiaWQiOiJrYXRlbGxvIiwibmFtZSI6ImthdGVsbG8iLCJh
1363
        dXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNvbnRlbnQgYW5kIFN1YnNj
1364
        cmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3IgRm9yZW1hbiIsInVybCI6
1365
        Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJzaW9uIjoiMy4wLjAuODIi
1366
        fSx7ImlkIjoicmVkaGF0X2FjY2VzcyIsIm5hbWUiOiJyZWRoYXRfYWNjZXNz
1367
        IiwiYXV0aG9yIjoiTGluZGFuaSBQaGlyaSIsImRlc2NyaXB0aW9uIjoiVGhp
1368
        cyBwbHVnaW4gYWRkcyBSZWQgSGF0IEFjY2VzcyBrbm93bGVkZ2UgYmFzZSBz
1369
        ZWFyY2gsIGNhc2UgbWFuYWdlbWVudCBhbmQgZGlhZ25vc3RpY3MgdG8gRm9y
1370
        ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
1371
        ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
1372
    http_version: 
1373
  recorded_at: Wed, 14 Dec 2016 13:46:23 GMT
1374
- request:
1375
    method: get
1376
    uri: https://satlap.example.com/apidoc/v2.en.json
1377
    body:
1378
      encoding: US-ASCII
1379
      string: ''
1380
    headers:
1381
      Accept:
1382
      - application/json
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff