Revision 1327c177
Added by Thomas McKay about 6 years ago
test/fixtures/vcr_cassettes/setup/setup_content_hosts/setup.yml | ||
---|---|---|
2 | 2 |
http_interactions: |
3 | 3 |
- request: |
4 | 4 |
method: get |
5 |
uri: https://admin:changeme@katello.example.com:50083/api/organizations/8/hosts?per_page=1 |
|
6 |
body: |
|
7 |
encoding: US-ASCII |
|
8 |
string: '' |
|
9 |
headers: |
|
10 |
Accept: |
|
11 |
- application/json;version=2 |
|
12 |
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 |
- katello.example.com:50083 |
|
22 |
response: |
|
23 |
status: |
|
24 |
code: 200 |
|
25 |
message: OK |
|
26 |
headers: |
|
27 |
Date: |
|
28 |
- Wed, 30 Nov 2016 15:03:15 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 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
43 |
Cache-Control: |
|
44 |
- max-age=0, private, must-revalidate |
|
45 |
X-Request-Id: |
|
46 |
- 141d55f1-53ce-4fbb-bfb7-4810f4a6e20c |
|
47 |
X-Runtime: |
|
48 |
- '0.273700' |
|
49 |
X-Powered-By: |
|
50 |
- Phusion Passenger 4.0.18 |
|
51 |
Etag: |
|
52 |
- '"9dddf58603bb6b0c90eb10fb3fc11092-gzip"' |
|
53 |
Status: |
|
54 |
- 200 OK |
|
55 |
Vary: |
|
56 |
- Accept-Encoding |
|
57 |
Content-Length: |
|
58 |
- '2297' |
|
59 |
Content-Type: |
|
60 |
- application/json; charset=utf-8 |
|
61 |
Set-Cookie: |
|
62 |
- _session_id=47ca6fcccda66e6fed85c84bda11992b; path=/; secure; HttpOnly |
|
63 |
body: |
|
64 |
encoding: ASCII-8BIT |
|
65 |
string: | |
|
66 |
{ |
|
67 |
"total": 2, |
|
68 |
"subtotal": 2, |
|
69 |
"page": 1, |
|
70 |
"per_page": 1, |
|
71 |
"search": null, |
|
72 |
"sort": { |
|
73 |
"by": null, |
|
74 |
"order": null |
|
75 |
}, |
|
76 |
"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-11-28 20:09:51 UTC","updated_at":"2016-11-28 21:27:19 UTC","last_compile":"2016-11-28 20:09:52 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":76,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":76,"uuid":"20e6ed92-82a4-4fee-b3c0-048420eee4cf","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":76,"uuid":"20e6ed92-82a4-4fee-b3c0-048420eee4cf","last_checkin":"2016-11-28 20:09:51 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28 20:09:51 UTC"},"content_host_id":76}] |
|
77 |
} |
|
78 |
http_version: |
|
79 |
recorded_at: Wed, 30 Nov 2016 15:03:22 GMT |
|
80 |
- request: |
|
81 |
method: get |
|
82 |
uri: https://admin:changeme@katello.example.com:50083/api/organizations/8/hosts?page=1&per_page=20 |
|
83 |
body: |
|
84 |
encoding: US-ASCII |
|
85 |
string: '' |
|
86 |
headers: |
|
87 |
Accept: |
|
88 |
- application/json;version=2 |
|
89 |
Accept-Encoding: |
|
90 |
- gzip, deflate |
|
91 |
User-Agent: |
|
92 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
93 |
Content-Type: |
|
94 |
- application/json |
|
95 |
Accept-Language: |
|
96 |
- en |
|
97 |
Host: |
|
98 |
- katello.example.com:50083 |
|
99 |
response: |
|
100 |
status: |
|
101 |
code: 200 |
|
102 |
message: OK |
|
103 |
headers: |
|
104 |
Date: |
|
105 |
- Wed, 30 Nov 2016 15:03:15 GMT |
|
106 |
Server: |
|
107 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
108 |
X-Frame-Options: |
|
109 |
- SAMEORIGIN |
|
110 |
X-Xss-Protection: |
|
111 |
- 1; mode=block |
|
112 |
X-Content-Type-Options: |
|
113 |
- nosniff |
|
114 |
Foreman-Version: |
|
115 |
- 1.11.0.54 |
|
116 |
Foreman-Api-Version: |
|
117 |
- '2' |
|
118 |
Apipie-Checksum: |
|
119 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
120 |
Cache-Control: |
|
121 |
- max-age=0, private, must-revalidate |
|
122 |
X-Request-Id: |
|
123 |
- ed9b51b5-0414-4f30-b242-c2440ac8f19a |
|
124 |
X-Runtime: |
|
125 |
- '0.316967' |
|
126 |
X-Powered-By: |
|
127 |
- Phusion Passenger 4.0.18 |
|
128 |
Etag: |
|
129 |
- '"c93296bc0fd6bf7ae5e03a09de91b598-gzip"' |
|
130 |
Status: |
|
131 |
- 200 OK |
|
132 |
Vary: |
|
133 |
- Accept-Encoding |
|
134 |
Content-Length: |
|
135 |
- '4434' |
|
136 |
Content-Type: |
|
137 |
- application/json; charset=utf-8 |
|
138 |
Set-Cookie: |
|
139 |
- _session_id=9f64c61260d4ffba02f504f0ec6b70a7; path=/; secure; HttpOnly |
|
140 |
body: |
|
141 |
encoding: ASCII-8BIT |
|
142 |
string: | |
|
143 |
{ |
|
144 |
"total": 2, |
|
145 |
"subtotal": 2, |
|
146 |
"page": 1, |
|
147 |
"per_page": 20, |
|
148 |
"search": null, |
|
149 |
"sort": { |
|
150 |
"by": null, |
|
151 |
"order": null |
|
152 |
}, |
|
153 |
"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-11-28 20:09:51 UTC","updated_at":"2016-11-28 21:27:19 UTC","last_compile":"2016-11-28 20:09:52 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":76,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":76,"uuid":"20e6ed92-82a4-4fee-b3c0-048420eee4cf","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":76,"uuid":"20e6ed92-82a4-4fee-b3c0-048420eee4cf","last_checkin":"2016-11-28 20:09:51 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28 20:09:51 UTC"},"content_host_id":76},{"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-11-28 20:09:42 UTC","updated_at":"2016-11-28 21:27:09 UTC","last_compile":"2016-11-28 20:09:44 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":75,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":75,"uuid":"e07ca264-ff7d-4ba6-aa91-ed71e8d55bdb","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":75,"uuid":"e07ca264-ff7d-4ba6-aa91-ed71e8d55bdb","last_checkin":"2016-11-28 20:09:43 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28 20:09:43 UTC"},"content_host_id":75}] |
|
154 |
} |
|
155 |
http_version: |
|
156 |
recorded_at: Wed, 30 Nov 2016 15:03:23 GMT |
|
157 |
- request: |
|
158 |
method: get |
|
159 |
uri: https://admin:changeme@katello.example.com:50083/katello/api/organizations/8/environments?per_page=999999 |
|
160 |
body: |
|
161 |
encoding: US-ASCII |
|
162 |
string: '' |
|
163 |
headers: |
|
164 |
Accept: |
|
165 |
- application/json;version=2 |
|
166 |
Accept-Encoding: |
|
167 |
- gzip, deflate |
|
168 |
User-Agent: |
|
169 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
170 |
Content-Type: |
|
171 |
- application/json |
|
172 |
Accept-Language: |
|
173 |
- en |
|
174 |
Host: |
|
175 |
- katello.example.com:50083 |
|
176 |
response: |
|
177 |
status: |
|
178 |
code: 200 |
|
179 |
message: OK |
|
180 |
headers: |
|
181 |
Date: |
|
182 |
- Wed, 30 Nov 2016 15:03:16 GMT |
|
183 |
Server: |
|
184 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
185 |
X-Frame-Options: |
|
186 |
- SAMEORIGIN |
|
187 |
X-Xss-Protection: |
|
188 |
- 1; mode=block |
|
189 |
X-Content-Type-Options: |
|
190 |
- nosniff |
|
191 |
Foreman-Version: |
|
192 |
- 1.11.0.54 |
|
193 |
Foreman-Api-Version: |
|
194 |
- '2' |
|
195 |
Apipie-Checksum: |
|
196 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
197 |
Cache-Control: |
|
198 |
- max-age=0, private, must-revalidate |
|
199 |
X-Request-Id: |
|
200 |
- 266fac1c-7446-40fd-8f2c-3e0e86e4fa2a |
|
201 |
X-Runtime: |
|
202 |
- '0.178364' |
|
203 |
X-Powered-By: |
|
204 |
- Phusion Passenger 4.0.18 |
|
205 |
Etag: |
|
206 |
- '"4e1a31696592f5deed5a104bca695f4a-gzip"' |
|
207 |
Status: |
|
208 |
- 200 OK |
|
209 |
Vary: |
|
210 |
- Accept-Encoding |
|
211 |
Content-Length: |
|
212 |
- '3019' |
|
213 |
Content-Type: |
|
214 |
- application/json; charset=utf-8 |
|
215 |
Set-Cookie: |
|
216 |
- _session_id=b8e48028f37f3c76faa623e22d654d4e; path=/; secure; HttpOnly |
|
217 |
body: |
|
218 |
encoding: ASCII-8BIT |
|
219 |
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, |
|
220 |
manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 |
|
221 |
13:20:48 UTC","updated_at":"2016-11-22 13:20:48 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, |
|
222 |
manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 |
|
223 |
13:20:48 UTC","updated_at":"2016-11-22 13:20:48 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 |
|
224 |
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:04 |
|
225 |
UTC","updated_at":"2016-11-22 13:20:04 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":1,"docker_repositories":0,"ostree_repositories":0,"products":3},"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, |
|
226 |
automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 |
|
227 |
13:20:47 UTC","updated_at":"2016-11-22 13:20:47 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, |
|
228 |
no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 |
|
229 |
13:20:48 UTC","updated_at":"2016-11-22 13:20:48 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}}]} |
|
230 |
|
|
231 |
' |
|
232 |
http_version: |
|
233 |
recorded_at: Wed, 30 Nov 2016 15:03:23 GMT |
|
234 |
- request: |
|
235 |
method: get |
|
236 |
uri: https://admin:changeme@katello.example.com:50083/katello/api/organizations/8/content_views?per_page=999999 |
|
237 |
body: |
|
238 |
encoding: US-ASCII |
|
239 |
string: '' |
|
240 |
headers: |
|
241 |
Accept: |
|
242 |
- application/json;version=2 |
|
243 |
Accept-Encoding: |
|
244 |
- gzip, deflate |
|
245 |
User-Agent: |
|
246 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
247 |
Content-Type: |
|
248 |
- application/json |
|
249 |
Accept-Language: |
|
250 |
- en |
|
251 |
Host: |
|
252 |
- katello.example.com:50083 |
|
253 |
response: |
|
254 |
status: |
|
255 |
code: 200 |
|
256 |
message: OK |
|
257 |
headers: |
|
258 |
Date: |
|
259 |
- Wed, 30 Nov 2016 15:03:16 GMT |
|
260 |
Server: |
|
261 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
262 |
X-Frame-Options: |
|
263 |
- SAMEORIGIN |
|
264 |
X-Xss-Protection: |
|
265 |
- 1; mode=block |
|
266 |
X-Content-Type-Options: |
|
267 |
- nosniff |
|
268 |
Foreman-Version: |
|
269 |
- 1.11.0.54 |
|
270 |
Foreman-Api-Version: |
|
271 |
- '2' |
|
272 |
Apipie-Checksum: |
|
273 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
274 |
Cache-Control: |
|
275 |
- max-age=0, private, must-revalidate |
|
276 |
X-Request-Id: |
|
277 |
- 0785f9bb-fd86-4da4-b41d-682bc393699e |
|
278 |
X-Runtime: |
|
279 |
- '0.081047' |
|
280 |
X-Powered-By: |
|
281 |
- Phusion Passenger 4.0.18 |
|
282 |
Etag: |
|
283 |
- '"aa9fa1da1e6ef54d281880ce5c59cc70-gzip"' |
|
284 |
Status: |
|
285 |
- 200 OK |
|
286 |
Vary: |
|
287 |
- Accept-Encoding |
|
288 |
Content-Length: |
|
289 |
- '1743' |
|
290 |
Content-Type: |
|
291 |
- application/json; charset=utf-8 |
|
292 |
Set-Cookie: |
|
293 |
- _session_id=d517f525224bd76a78f827e5534a7e3f; path=/; secure; HttpOnly |
|
294 |
body: |
|
295 |
encoding: ASCII-8BIT |
|
296 |
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 |
|
297 |
Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test |
|
298 |
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:40 |
|
299 |
UTC","updated_at":"2016-11-22 13:20:42 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":3,"version":"1.0","published":"2016-11-22 |
|
300 |
13:20:42 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-11-22 |
|
301 |
13:20:42 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 |
|
302 |
Organization View","label":"2abb245e-7fd3-4087-bea5-31ff5fb1ce95","description":null,"organization":{"name":"Test |
|
303 |
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:04 |
|
304 |
UTC","updated_at":"2016-11-22 13:20:04 UTC","environments":[{"id":2,"name":"Library","label":"Library","permissions":{"readable":true}}],"repositories":[],"puppet_modules":[],"versions":[{"id":2,"version":"1.0","published":"2016-11-22 |
|
305 |
13:20:04 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-11-22 |
|
306 |
13:20:04 UTC","permissions":{"view_content_views":true,"edit_content_views":true,"destroy_content_views":true,"publish_content_views":true,"promote_or_remove_content_views":true}}]} |
|
307 |
|
|
308 |
' |
|
309 |
http_version: |
|
310 |
recorded_at: Wed, 30 Nov 2016 15:03:23 GMT |
|
311 |
- request: |
|
312 |
method: put |
|
313 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75 |
|
314 |
body: |
|
315 |
encoding: UTF-8 |
|
316 |
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red |
|
317 |
Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}' |
|
318 |
headers: |
|
319 |
Accept: |
|
320 |
- application/json;version=2 |
|
321 |
Accept-Encoding: |
|
322 |
- gzip, deflate |
|
323 |
User-Agent: |
|
324 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
325 |
Content-Type: |
|
326 |
- application/json |
|
327 |
Accept-Language: |
|
328 |
- en |
|
329 |
Content-Length: |
|
330 |
- '271' |
|
331 |
Host: |
|
332 |
- katello.example.com:50083 |
|
333 |
response: |
|
334 |
status: |
|
335 |
code: 200 |
|
336 |
message: OK |
|
337 |
headers: |
|
338 |
Date: |
|
339 |
- Wed, 30 Nov 2016 15:03:16 GMT |
|
340 |
Server: |
|
341 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
342 |
X-Frame-Options: |
|
343 |
- SAMEORIGIN |
|
344 |
X-Xss-Protection: |
|
345 |
- 1; mode=block |
|
346 |
X-Content-Type-Options: |
|
347 |
- nosniff |
|
348 |
Foreman-Version: |
|
349 |
- 1.11.0.54 |
|
350 |
Foreman-Api-Version: |
|
351 |
- '2' |
|
352 |
Apipie-Checksum: |
|
353 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
354 |
Cache-Control: |
|
355 |
- max-age=0, private, must-revalidate |
|
356 |
X-Request-Id: |
|
357 |
- 0f3eb388-0a37-4a05-bf34-06015c29983d |
|
358 |
X-Runtime: |
|
359 |
- '0.744682' |
|
360 |
X-Powered-By: |
|
361 |
- Phusion Passenger 4.0.18 |
|
362 |
Etag: |
|
363 |
- '"4b2cb7da45ed5b9e852d4c4d60aea7a3-gzip"' |
|
364 |
Status: |
|
365 |
- 200 OK |
|
366 |
Vary: |
|
367 |
- Accept-Encoding |
|
368 |
Content-Length: |
|
369 |
- '3825' |
|
370 |
Content-Type: |
|
371 |
- application/json; charset=utf-8 |
|
372 |
Set-Cookie: |
|
373 |
- _session_id=3002708baa2b1379cc2c1b542defa3a7; path=/; secure; HttpOnly |
|
374 |
- request_method=PUT; path=/ |
|
375 |
body: |
|
376 |
encoding: ASCII-8BIT |
|
377 |
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-11-28 |
|
378 |
20:09:42 UTC","updated_at":"2016-11-28 21:27:09 UTC","last_compile":"2016-11-28 |
|
379 |
20:09:44 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test |
|
380 |
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could |
|
381 |
not calculate errata status, ensure host is registered and katello-agent is |
|
382 |
installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testvm","id":75,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":75,"uuid":"e07ca264-ff7d-4ba6-aa91-ed71e8d55bdb","content_view_id":2,"content_view_name":"Default |
|
383 |
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default |
|
384 |
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":75,"uuid":"e07ca264-ff7d-4ba6-aa91-ed71e8d55bdb","last_checkin":"2016-11-28 |
|
385 |
20:09:43 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28 |
|
386 |
20:09:43 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158ac8ec7910aa4","productId":"69","productName":"Red |
|
387 |
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-11-28T20:09:48.177+0000","updated":"2016-11-28T20:09:48.177+0000"}]},"content_host_id":75,"parameters":[],"interfaces":[{"id":76,"name":"testvm","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"virt::is_guest":"true","virt::uuid":"Test |
|
388 |
Corporation/testvm","cpu::cpu(s)":"1","system":null,"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","network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-11-28T20:09:44+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}}' |
|
389 |
http_version: |
|
390 |
recorded_at: Wed, 30 Nov 2016 15:03:24 GMT |
|
391 |
- request: |
|
392 |
method: get |
|
393 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions |
|
394 |
body: |
|
395 |
encoding: US-ASCII |
|
396 |
string: '' |
|
397 |
headers: |
|
398 |
Accept: |
|
399 |
- application/json;version=2 |
|
400 |
Accept-Encoding: |
|
401 |
- gzip, deflate |
|
402 |
User-Agent: |
|
403 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
404 |
Content-Type: |
|
405 |
- application/json |
|
406 |
Accept-Language: |
|
407 |
- en |
|
408 |
Host: |
|
409 |
- katello.example.com:50083 |
|
410 |
response: |
|
411 |
status: |
|
412 |
code: 200 |
|
413 |
message: OK |
|
414 |
headers: |
|
415 |
Date: |
|
416 |
- Wed, 30 Nov 2016 15:03:17 GMT |
|
417 |
Server: |
|
418 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
419 |
X-Frame-Options: |
|
420 |
- SAMEORIGIN |
|
421 |
X-Xss-Protection: |
|
422 |
- 1; mode=block |
|
423 |
X-Content-Type-Options: |
|
424 |
- nosniff |
|
425 |
Foreman-Version: |
|
426 |
- 1.11.0.54 |
|
427 |
Foreman-Api-Version: |
|
428 |
- '2' |
|
429 |
Apipie-Checksum: |
|
430 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
431 |
Cache-Control: |
|
432 |
- max-age=0, private, must-revalidate |
|
433 |
X-Request-Id: |
|
434 |
- fbfa5bdd-a010-4d09-8ede-afe338c8eddf |
|
435 |
X-Runtime: |
|
436 |
- '0.245801' |
|
437 |
X-Powered-By: |
|
438 |
- Phusion Passenger 4.0.18 |
|
439 |
Etag: |
|
440 |
- '"282aa0baf77a223896b2bbaec7347468-gzip"' |
|
441 |
Status: |
|
442 |
- 200 OK |
|
443 |
Vary: |
|
444 |
- Accept-Encoding |
|
445 |
Content-Length: |
|
446 |
- '770' |
|
447 |
Content-Type: |
|
448 |
- application/json; charset=utf-8 |
|
449 |
Set-Cookie: |
|
450 |
- _session_id=14815a2bea6d882386358cdb351e0559; path=/; secure; HttpOnly |
|
451 |
body: |
|
452 |
encoding: ASCII-8BIT |
|
453 |
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
454 |
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 |
|
455 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
456 |
|
|
457 |
' |
|
458 |
http_version: |
|
459 |
recorded_at: Wed, 30 Nov 2016 15:03:24 GMT |
|
460 |
- request: |
|
461 |
method: put |
|
462 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions/remove_subscriptions |
|
463 |
body: |
|
464 |
encoding: UTF-8 |
|
465 |
string: '{"subscriptions":[{"id":24,"quantity":1}]}' |
|
466 |
headers: |
|
467 |
Accept: |
|
468 |
- application/json;version=2 |
|
469 |
Accept-Encoding: |
|
470 |
- gzip, deflate |
|
471 |
User-Agent: |
|
472 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
473 |
Content-Type: |
|
474 |
- application/json |
|
475 |
Accept-Language: |
|
476 |
- en |
|
477 |
Content-Length: |
|
478 |
- '42' |
|
479 |
Host: |
|
480 |
- katello.example.com:50083 |
|
481 |
response: |
|
482 |
status: |
|
483 |
code: 200 |
|
484 |
message: OK |
|
485 |
headers: |
|
486 |
Date: |
|
487 |
- Wed, 30 Nov 2016 15:03:17 GMT |
|
488 |
Server: |
|
489 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
490 |
X-Frame-Options: |
|
491 |
- SAMEORIGIN |
|
492 |
X-Xss-Protection: |
|
493 |
- 1; mode=block |
|
494 |
X-Content-Type-Options: |
|
495 |
- nosniff |
|
496 |
Foreman-Version: |
|
497 |
- 1.11.0.54 |
|
498 |
Foreman-Api-Version: |
|
499 |
- '2' |
|
500 |
Apipie-Checksum: |
|
501 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
502 |
Cache-Control: |
|
503 |
- max-age=0, private, must-revalidate |
|
504 |
X-Request-Id: |
|
505 |
- 36881844-8185-4047-9bc3-14a1b80c55d5 |
|
506 |
X-Runtime: |
|
507 |
- '1.085246' |
|
508 |
X-Powered-By: |
|
509 |
- Phusion Passenger 4.0.18 |
|
510 |
Etag: |
|
511 |
- '"4a3267604dfa8f9cea83a503d95cc600-gzip"' |
|
512 |
Status: |
|
513 |
- 200 OK |
|
514 |
Vary: |
|
515 |
- Accept-Encoding |
|
516 |
Content-Length: |
|
517 |
- '770' |
|
518 |
Content-Type: |
|
519 |
- application/json; charset=utf-8 |
|
520 |
Set-Cookie: |
|
521 |
- _session_id=32d04d3d0ed629cb01ee0f5c0d1ce2fa; path=/; secure; HttpOnly |
|
522 |
- request_method=PUT; path=/ |
|
523 |
body: |
|
524 |
encoding: ASCII-8BIT |
|
525 |
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
526 |
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 |
|
527 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
528 |
|
|
529 |
' |
|
530 |
http_version: |
|
531 |
recorded_at: Wed, 30 Nov 2016 15:03:25 GMT |
|
532 |
- request: |
|
533 |
method: get |
|
534 |
uri: https://admin:changeme@katello.example.com:50083/katello/api/organizations/8/subscriptions?per_page=999999&search=name%20=%20%22Red%20Hat%20Enterprise%20Linux%20Server,%20Standard%20(Physical%20or%20Virtual%20Nodes)%22 |
|
535 |
body: |
|
536 |
encoding: US-ASCII |
|
537 |
string: '' |
|
538 |
headers: |
|
539 |
Accept: |
|
540 |
- application/json;version=2 |
|
541 |
Accept-Encoding: |
|
542 |
- gzip, deflate |
|
543 |
User-Agent: |
|
544 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
545 |
Content-Type: |
|
546 |
- application/json |
|
547 |
Accept-Language: |
|
548 |
- en |
|
549 |
Host: |
|
550 |
- katello.example.com:50083 |
|
551 |
response: |
|
552 |
status: |
|
553 |
code: 200 |
|
554 |
message: OK |
|
555 |
headers: |
|
556 |
Date: |
|
557 |
- Wed, 30 Nov 2016 15:03:18 GMT |
|
558 |
Server: |
|
559 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
560 |
X-Frame-Options: |
|
561 |
- SAMEORIGIN |
|
562 |
X-Xss-Protection: |
|
563 |
- 1; mode=block |
|
564 |
X-Content-Type-Options: |
|
565 |
- nosniff |
|
566 |
Foreman-Version: |
|
567 |
- 1.11.0.54 |
|
568 |
Foreman-Api-Version: |
|
569 |
- '2' |
|
570 |
Apipie-Checksum: |
|
571 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
572 |
Cache-Control: |
|
573 |
- max-age=0, private, must-revalidate |
|
574 |
X-Request-Id: |
|
575 |
- 0018d88e-e9b5-46ea-9715-e80f221e0506 |
|
576 |
X-Runtime: |
|
577 |
- '0.265246' |
|
578 |
X-Powered-By: |
|
579 |
- Phusion Passenger 4.0.18 |
|
580 |
Etag: |
|
581 |
- '"6f03cb8153763c01e156a84cd18cce98-gzip"' |
|
582 |
Status: |
|
583 |
- 200 OK |
|
584 |
Vary: |
|
585 |
- Accept-Encoding |
|
586 |
Content-Length: |
|
587 |
- '851' |
|
588 |
Content-Type: |
|
589 |
- application/json; charset=utf-8 |
|
590 |
Set-Cookie: |
|
591 |
- _session_id=95646fb7f7d16ce468ef871b848e376a; path=/; secure; HttpOnly |
|
592 |
body: |
|
593 |
encoding: ASCII-8BIT |
|
594 |
string: '{"organization":{},"total":6,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":"name |
|
595 |
= \"Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)\"","sort":{"by":null,"order":null},"results":[{"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
596 |
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 |
|
597 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
598 |
|
|
599 |
' |
|
600 |
http_version: |
|
601 |
recorded_at: Wed, 30 Nov 2016 15:03:26 GMT |
|
602 |
- request: |
|
603 |
method: put |
|
604 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions/add_subscriptions |
|
605 |
body: |
|
606 |
encoding: UTF-8 |
|
607 |
string: '{"subscriptions":[{"id":24,"quantity":0}]}' |
|
608 |
headers: |
|
609 |
Accept: |
|
610 |
- application/json;version=2 |
|
611 |
Accept-Encoding: |
|
612 |
- gzip, deflate |
|
613 |
User-Agent: |
|
614 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
615 |
Content-Type: |
|
616 |
- application/json |
|
617 |
Accept-Language: |
|
618 |
- en |
|
619 |
Content-Length: |
|
620 |
- '42' |
|
621 |
Host: |
|
622 |
- katello.example.com:50083 |
|
623 |
response: |
|
624 |
status: |
|
625 |
code: 200 |
|
626 |
message: OK |
|
627 |
headers: |
|
628 |
Date: |
|
629 |
- Wed, 30 Nov 2016 15:03:19 GMT |
|
630 |
Server: |
|
631 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
632 |
X-Frame-Options: |
|
633 |
- SAMEORIGIN |
|
634 |
X-Xss-Protection: |
|
635 |
- 1; mode=block |
|
636 |
X-Content-Type-Options: |
|
637 |
- nosniff |
|
638 |
Foreman-Version: |
|
639 |
- 1.11.0.54 |
|
640 |
Foreman-Api-Version: |
|
641 |
- '2' |
|
642 |
Apipie-Checksum: |
|
643 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
644 |
Cache-Control: |
|
645 |
- max-age=0, private, must-revalidate |
|
646 |
X-Request-Id: |
|
647 |
- f7d0954d-952d-458e-82be-1bf3cfa8a0ca |
|
648 |
X-Runtime: |
|
649 |
- '0.959202' |
|
650 |
X-Powered-By: |
|
651 |
- Phusion Passenger 4.0.18 |
|
652 |
Etag: |
|
653 |
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"' |
|
654 |
Status: |
|
655 |
- 200 OK |
|
656 |
Vary: |
|
657 |
- Accept-Encoding |
|
658 |
Content-Length: |
|
659 |
- '119' |
|
660 |
Content-Type: |
|
661 |
- application/json; charset=utf-8 |
|
662 |
Set-Cookie: |
|
663 |
- _session_id=87c7a0276dca9d35b057aaad463a7f50; path=/; secure; HttpOnly |
|
664 |
- request_method=PUT; path=/ |
|
665 |
body: |
|
666 |
encoding: ASCII-8BIT |
|
667 |
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]} |
|
668 |
|
|
669 |
' |
|
670 |
http_version: |
|
671 |
recorded_at: Wed, 30 Nov 2016 15:03:27 GMT |
|
672 |
- request: |
|
673 |
method: put |
|
674 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75 |
|
675 |
body: |
|
676 |
encoding: UTF-8 |
|
677 |
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red |
|
678 |
Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}' |
|
679 |
headers: |
|
680 |
Accept: |
|
681 |
- application/json;version=2 |
|
682 |
Accept-Encoding: |
|
683 |
- gzip, deflate |
|
684 |
User-Agent: |
|
685 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
686 |
Content-Type: |
|
687 |
- application/json |
|
688 |
Accept-Language: |
|
689 |
- en |
|
690 |
Content-Length: |
|
691 |
- '271' |
|
692 |
Host: |
|
693 |
- katello.example.com:50083 |
|
694 |
response: |
|
695 |
status: |
|
696 |
code: 200 |
|
697 |
message: OK |
|
698 |
headers: |
|
699 |
Date: |
|
700 |
- Wed, 30 Nov 2016 15:03:20 GMT |
|
701 |
Server: |
|
702 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
703 |
X-Frame-Options: |
|
704 |
- SAMEORIGIN |
|
705 |
X-Xss-Protection: |
|
706 |
- 1; mode=block |
|
707 |
X-Content-Type-Options: |
|
708 |
- nosniff |
|
709 |
Foreman-Version: |
|
710 |
- 1.11.0.54 |
|
711 |
Foreman-Api-Version: |
|
712 |
- '2' |
|
713 |
Apipie-Checksum: |
|
714 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
715 |
Cache-Control: |
|
716 |
- max-age=0, private, must-revalidate |
|
717 |
X-Request-Id: |
|
718 |
- a33828a7-ace5-47c1-950f-97d2be5007e3 |
|
719 |
X-Runtime: |
|
720 |
- '0.709180' |
|
721 |
X-Powered-By: |
|
722 |
- Phusion Passenger 4.0.18 |
|
723 |
Etag: |
|
724 |
- '"566a51c74b78d26aa49b8285565514f3-gzip"' |
|
725 |
Status: |
|
726 |
- 200 OK |
|
727 |
Vary: |
|
728 |
- Accept-Encoding |
|
729 |
Content-Length: |
|
730 |
- '3819' |
|
731 |
Content-Type: |
|
732 |
- application/json; charset=utf-8 |
|
733 |
Set-Cookie: |
|
734 |
- _session_id=4bfba7cc4e4f4ad667e2cc23ae12c6b8; path=/; secure; HttpOnly |
|
735 |
- request_method=PUT; path=/ |
|
736 |
body: |
|
737 |
encoding: ASCII-8BIT |
|
738 |
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-11-28 |
|
739 |
20:09:42 UTC","updated_at":"2016-11-30 15:03:18 UTC","last_compile":"2016-11-28 |
|
740 |
20:09:44 UTC","global_status":2,"global_status_label":"Error","organization_id":8,"organization_name":"Test |
|
741 |
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could |
|
742 |
not calculate errata status, ensure host is registered and katello-agent is |
|
743 |
installed","subscription_status":2,"subscription_status_label":"Unentitled","name":"testvm","id":75,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":75,"uuid":"e07ca264-ff7d-4ba6-aa91-ed71e8d55bdb","content_view_id":2,"content_view_name":"Default |
|
744 |
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default |
|
745 |
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":75,"uuid":"e07ca264-ff7d-4ba6-aa91-ed71e8d55bdb","last_checkin":"2016-11-28 |
|
746 |
20:09:43 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28 |
|
747 |
20:09:43 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158ac8ec7910aa4","productId":"69","productName":"Red |
|
748 |
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-11-28T20:09:48.177+0000","updated":"2016-11-28T20:09:48.177+0000"}]},"content_host_id":75,"parameters":[],"interfaces":[{"id":76,"name":"testvm","ip":null,"mac":null,"identifier":null,"primary":true,"provision":true,"type":"interface"}],"puppetclasses":[],"config_groups":[],"all_parameters":[],"all_puppetclasses":[],"facts":{"virt::is_guest":"true","virt::uuid":"Test |
|
749 |
Corporation/testvm","cpu::cpu(s)":"1","system":null,"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","network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-11-28T20:09:44+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}}' |
|
750 |
http_version: |
|
751 |
recorded_at: Wed, 30 Nov 2016 15:03:27 GMT |
|
752 |
- request: |
|
753 |
method: get |
|
754 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions |
|
755 |
body: |
|
756 |
encoding: US-ASCII |
|
757 |
string: '' |
|
758 |
headers: |
|
759 |
Accept: |
|
760 |
- application/json;version=2 |
|
761 |
Accept-Encoding: |
|
762 |
- gzip, deflate |
|
763 |
User-Agent: |
|
764 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
765 |
Content-Type: |
|
766 |
- application/json |
|
767 |
Accept-Language: |
|
768 |
- en |
|
769 |
Host: |
|
770 |
- katello.example.com:50083 |
|
771 |
response: |
|
772 |
status: |
|
773 |
code: 200 |
|
774 |
message: OK |
|
775 |
headers: |
|
776 |
Date: |
|
777 |
- Wed, 30 Nov 2016 15:03:20 GMT |
|
778 |
Server: |
|
779 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
780 |
X-Frame-Options: |
|
781 |
- SAMEORIGIN |
|
782 |
X-Xss-Protection: |
|
783 |
- 1; mode=block |
|
784 |
X-Content-Type-Options: |
|
785 |
- nosniff |
|
786 |
Foreman-Version: |
|
787 |
- 1.11.0.54 |
|
788 |
Foreman-Api-Version: |
|
789 |
- '2' |
|
790 |
Apipie-Checksum: |
|
791 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
792 |
Cache-Control: |
|
793 |
- max-age=0, private, must-revalidate |
|
794 |
X-Request-Id: |
|
795 |
- ca1b81ab-e29d-41cc-9332-1236aa37d494 |
|
796 |
X-Runtime: |
|
797 |
- '0.262857' |
|
798 |
X-Powered-By: |
|
799 |
- Phusion Passenger 4.0.18 |
|
800 |
Etag: |
|
801 |
- '"282aa0baf77a223896b2bbaec7347468-gzip"' |
|
802 |
Status: |
|
803 |
- 200 OK |
|
804 |
Vary: |
|
805 |
- Accept-Encoding |
|
806 |
Content-Length: |
|
807 |
- '770' |
|
808 |
Content-Type: |
|
809 |
- application/json; charset=utf-8 |
|
810 |
Set-Cookie: |
|
811 |
- _session_id=c80896a3f9d68f15fe2b46cacf922360; path=/; secure; HttpOnly |
|
812 |
body: |
|
813 |
encoding: ASCII-8BIT |
|
814 |
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
815 |
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 |
|
816 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
817 |
|
|
818 |
' |
|
819 |
http_version: |
|
820 |
recorded_at: Wed, 30 Nov 2016 15:03:28 GMT |
|
821 |
- request: |
|
822 |
method: put |
|
823 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions/remove_subscriptions |
|
824 |
body: |
|
825 |
encoding: UTF-8 |
|
826 |
string: '{"subscriptions":[{"id":24,"quantity":1}]}' |
|
827 |
headers: |
|
828 |
Accept: |
|
829 |
- application/json;version=2 |
|
830 |
Accept-Encoding: |
|
831 |
- gzip, deflate |
|
832 |
User-Agent: |
|
833 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
834 |
Content-Type: |
|
835 |
- application/json |
|
836 |
Accept-Language: |
|
837 |
- en |
|
838 |
Content-Length: |
|
839 |
- '42' |
|
840 |
Host: |
|
841 |
- katello.example.com:50083 |
|
842 |
response: |
|
843 |
status: |
|
844 |
code: 200 |
|
845 |
message: OK |
|
846 |
headers: |
|
847 |
Date: |
|
848 |
- Wed, 30 Nov 2016 15:03:21 GMT |
|
849 |
Server: |
|
850 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
851 |
X-Frame-Options: |
|
852 |
- SAMEORIGIN |
|
853 |
X-Xss-Protection: |
|
854 |
- 1; mode=block |
|
855 |
X-Content-Type-Options: |
|
856 |
- nosniff |
|
857 |
Foreman-Version: |
|
858 |
- 1.11.0.54 |
|
859 |
Foreman-Api-Version: |
|
860 |
- '2' |
|
861 |
Apipie-Checksum: |
|
862 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
863 |
Cache-Control: |
|
864 |
- max-age=0, private, must-revalidate |
|
865 |
X-Request-Id: |
|
866 |
- ff0a6c16-a8bd-4412-b872-71ffa8e3474e |
|
867 |
X-Runtime: |
|
868 |
- '1.198168' |
|
869 |
X-Powered-By: |
|
870 |
- Phusion Passenger 4.0.18 |
|
871 |
Etag: |
|
872 |
- '"4a3267604dfa8f9cea83a503d95cc600-gzip"' |
|
873 |
Status: |
|
874 |
- 200 OK |
|
875 |
Vary: |
|
876 |
- Accept-Encoding |
|
877 |
Content-Length: |
|
878 |
- '770' |
|
879 |
Content-Type: |
|
880 |
- application/json; charset=utf-8 |
|
881 |
Set-Cookie: |
|
882 |
- _session_id=16f0bc883e6f0f9cdcafecbaec25f786; path=/; secure; HttpOnly |
|
883 |
- request_method=PUT; path=/ |
|
884 |
body: |
|
885 |
encoding: ASCII-8BIT |
|
886 |
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
887 |
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 |
|
888 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
889 |
|
|
890 |
' |
|
891 |
http_version: |
|
892 |
recorded_at: Wed, 30 Nov 2016 15:03:29 GMT |
|
893 |
- request: |
|
894 |
method: put |
|
895 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions/add_subscriptions |
|
896 |
body: |
|
897 |
encoding: UTF-8 |
|
898 |
string: '{"subscriptions":[{"id":24,"quantity":0}]}' |
|
899 |
headers: |
|
900 |
Accept: |
|
901 |
- application/json;version=2 |
|
902 |
Accept-Encoding: |
|
903 |
- gzip, deflate |
|
904 |
User-Agent: |
|
905 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
906 |
Content-Type: |
|
907 |
- application/json |
|
908 |
Accept-Language: |
|
909 |
- en |
|
910 |
Content-Length: |
|
911 |
- '42' |
|
912 |
Host: |
|
913 |
- katello.example.com:50083 |
|
914 |
response: |
|
915 |
status: |
|
916 |
code: 200 |
|
917 |
message: OK |
|
918 |
headers: |
|
919 |
Date: |
|
920 |
- Wed, 30 Nov 2016 15:03:22 GMT |
|
921 |
Server: |
|
922 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
923 |
X-Frame-Options: |
|
924 |
- SAMEORIGIN |
|
925 |
X-Xss-Protection: |
|
926 |
- 1; mode=block |
|
927 |
X-Content-Type-Options: |
|
928 |
- nosniff |
|
929 |
Foreman-Version: |
|
930 |
- 1.11.0.54 |
|
931 |
Foreman-Api-Version: |
|
932 |
- '2' |
|
933 |
Apipie-Checksum: |
|
934 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
935 |
Cache-Control: |
|
936 |
- max-age=0, private, must-revalidate |
|
937 |
X-Request-Id: |
|
938 |
- 8b185313-133d-4afc-94b2-3a41434042e8 |
|
939 |
X-Runtime: |
|
940 |
- '1.121386' |
|
941 |
X-Powered-By: |
|
942 |
- Phusion Passenger 4.0.18 |
|
943 |
Etag: |
|
944 |
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"' |
|
945 |
Status: |
|
946 |
- 200 OK |
|
947 |
Vary: |
|
948 |
- Accept-Encoding |
|
949 |
Content-Length: |
|
950 |
- '119' |
|
951 |
Content-Type: |
|
952 |
- application/json; charset=utf-8 |
|
953 |
Set-Cookie: |
|
954 |
- _session_id=a651596db84ce5197d6a408818983de9; path=/; secure; HttpOnly |
|
955 |
- request_method=PUT; path=/ |
|
956 |
body: |
|
957 |
encoding: ASCII-8BIT |
|
958 |
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]} |
|
959 |
|
|
960 |
' |
|
961 |
http_version: |
|
962 |
recorded_at: Wed, 30 Nov 2016 15:03:30 GMT |
|
963 |
- request: |
|
964 |
method: put |
|
965 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76 |
|
966 |
body: |
|
967 |
encoding: UTF-8 |
|
968 |
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red |
|
969 |
Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}' |
|
970 |
headers: |
|
971 |
Accept: |
|
972 |
- application/json;version=2 |
|
973 |
Accept-Encoding: |
|
974 |
- gzip, deflate |
|
975 |
User-Agent: |
|
976 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
977 |
Content-Type: |
|
978 |
- application/json |
|
979 |
Accept-Language: |
|
980 |
- en |
|
981 |
Content-Length: |
|
982 |
- '271' |
|
983 |
Host: |
|
984 |
- katello.example.com:50083 |
|
985 |
response: |
|
986 |
status: |
|
987 |
code: 200 |
|
988 |
message: OK |
|
989 |
headers: |
|
990 |
Date: |
|
991 |
- Wed, 30 Nov 2016 15:03:23 GMT |
|
992 |
Server: |
|
993 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
994 |
X-Frame-Options: |
|
995 |
- SAMEORIGIN |
|
996 |
X-Xss-Protection: |
|
997 |
- 1; mode=block |
|
998 |
X-Content-Type-Options: |
|
999 |
- nosniff |
|
1000 |
Foreman-Version: |
|
1001 |
- 1.11.0.54 |
|
1002 |
Foreman-Api-Version: |
|
1003 |
- '2' |
|
1004 |
Apipie-Checksum: |
|
1005 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
1006 |
Cache-Control: |
|
1007 |
- max-age=0, private, must-revalidate |
|
1008 |
X-Request-Id: |
|
1009 |
- 63bc16a3-333e-4f8c-a718-eb01bd69dc7b |
|
1010 |
X-Runtime: |
|
1011 |
- '0.717856' |
|
1012 |
X-Powered-By: |
|
1013 |
- Phusion Passenger 4.0.18 |
|
1014 |
Etag: |
|
1015 |
- '"a8d8460c5ab2bcf1b209ce031c3478af-gzip"' |
|
1016 |
Status: |
|
1017 |
- 200 OK |
|
1018 |
Vary: |
|
1019 |
- Accept-Encoding |
|
1020 |
Content-Length: |
|
1021 |
- '3855' |
|
1022 |
Content-Type: |
|
1023 |
- application/json; charset=utf-8 |
|
1024 |
Set-Cookie: |
|
1025 |
- _session_id=0890192c64d92b5c9c240ed0a4ad0828; path=/; secure; HttpOnly |
|
1026 |
- request_method=PUT; path=/ |
|
1027 |
body: |
|
1028 |
encoding: ASCII-8BIT |
|
1029 |
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-11-28 |
|
1030 |
20:09:51 UTC","updated_at":"2016-11-28 21:27:19 UTC","last_compile":"2016-11-28 |
|
1031 |
20:09:52 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test |
|
1032 |
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could |
|
1033 |
not calculate errata status, ensure host is registered and katello-agent is |
|
1034 |
installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":76,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":76,"uuid":"20e6ed92-82a4-4fee-b3c0-048420eee4cf","content_view_id":2,"content_view_name":"Default |
|
1035 |
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default |
|
1036 |
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":76,"uuid":"20e6ed92-82a4-4fee-b3c0-048420eee4cf","last_checkin":"2016-11-28 |
|
1037 |
20:09:51 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28 |
|
1038 |
20:09:51 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158ac8edf4d0ab8","productId":"69","productName":"Red |
|
1039 |
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-11-28T20:09:54.253+0000","updated":"2016-11-28T20:09:54.253+0000"}]},"content_host_id":76,"parameters":[],"interfaces":[{"id":77,"name":"testphysical","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":"testphysical","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 |
|
1040 |
Corporation/testphysical","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-11-28T20:09:52+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}}' |
|
1041 |
http_version: |
|
1042 |
recorded_at: Wed, 30 Nov 2016 15:03:31 GMT |
|
1043 |
- request: |
|
1044 |
method: get |
|
1045 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions |
|
1046 |
body: |
|
1047 |
encoding: US-ASCII |
|
1048 |
string: '' |
|
1049 |
headers: |
|
1050 |
Accept: |
|
1051 |
- application/json;version=2 |
|
1052 |
Accept-Encoding: |
|
1053 |
- gzip, deflate |
|
1054 |
User-Agent: |
|
1055 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
1056 |
Content-Type: |
|
1057 |
- application/json |
|
1058 |
Accept-Language: |
|
1059 |
- en |
|
1060 |
Host: |
|
1061 |
- katello.example.com:50083 |
|
1062 |
response: |
|
1063 |
status: |
|
1064 |
code: 200 |
|
1065 |
message: OK |
|
1066 |
headers: |
|
1067 |
Date: |
|
1068 |
- Wed, 30 Nov 2016 15:03:24 GMT |
|
1069 |
Server: |
|
1070 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
1071 |
X-Frame-Options: |
|
1072 |
- SAMEORIGIN |
|
1073 |
X-Xss-Protection: |
|
1074 |
- 1; mode=block |
|
1075 |
X-Content-Type-Options: |
|
1076 |
- nosniff |
|
1077 |
Foreman-Version: |
|
1078 |
- 1.11.0.54 |
|
1079 |
Foreman-Api-Version: |
|
1080 |
- '2' |
|
1081 |
Apipie-Checksum: |
|
1082 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
1083 |
Cache-Control: |
|
1084 |
- max-age=0, private, must-revalidate |
|
1085 |
X-Request-Id: |
|
1086 |
- 70fc1ca7-fba6-459f-8604-a0f5168c25c1 |
|
1087 |
X-Runtime: |
|
1088 |
- '0.250591' |
|
1089 |
X-Powered-By: |
|
1090 |
- Phusion Passenger 4.0.18 |
|
1091 |
Etag: |
|
1092 |
- '"282aa0baf77a223896b2bbaec7347468-gzip"' |
|
1093 |
Status: |
|
1094 |
- 200 OK |
|
1095 |
Vary: |
|
1096 |
- Accept-Encoding |
|
1097 |
Content-Length: |
|
1098 |
- '770' |
|
1099 |
Content-Type: |
|
1100 |
- application/json; charset=utf-8 |
|
1101 |
Set-Cookie: |
|
1102 |
- _session_id=67533d844dace619d0ba03d6aa32c16e; path=/; secure; HttpOnly |
|
1103 |
body: |
|
1104 |
encoding: ASCII-8BIT |
|
1105 |
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
1106 |
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 |
|
1107 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
1108 |
|
|
1109 |
' |
|
1110 |
http_version: |
|
1111 |
recorded_at: Wed, 30 Nov 2016 15:03:31 GMT |
|
1112 |
- request: |
|
1113 |
method: put |
|
1114 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions/remove_subscriptions |
|
1115 |
body: |
|
1116 |
encoding: UTF-8 |
|
1117 |
string: '{"subscriptions":[{"id":24,"quantity":1}]}' |
|
1118 |
headers: |
|
1119 |
Accept: |
|
1120 |
- application/json;version=2 |
|
1121 |
Accept-Encoding: |
|
1122 |
- gzip, deflate |
|
1123 |
User-Agent: |
|
1124 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
1125 |
Content-Type: |
|
1126 |
- application/json |
|
1127 |
Accept-Language: |
|
1128 |
- en |
|
1129 |
Content-Length: |
|
1130 |
- '42' |
|
1131 |
Host: |
|
1132 |
- katello.example.com:50083 |
|
1133 |
response: |
|
1134 |
status: |
|
1135 |
code: 200 |
|
1136 |
message: OK |
|
1137 |
headers: |
|
1138 |
Date: |
|
1139 |
- Wed, 30 Nov 2016 15:03:24 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 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
1154 |
Cache-Control: |
|
1155 |
- max-age=0, private, must-revalidate |
|
1156 |
X-Request-Id: |
|
1157 |
- aa6d0ab0-960d-4f8b-8a6b-ad80b5e6eb29 |
|
1158 |
X-Runtime: |
|
1159 |
- '1.020288' |
|
1160 |
X-Powered-By: |
|
1161 |
- Phusion Passenger 4.0.18 |
|
1162 |
Etag: |
|
1163 |
- '"4a3267604dfa8f9cea83a503d95cc600-gzip"' |
|
1164 |
Status: |
|
1165 |
- 200 OK |
|
1166 |
Vary: |
|
1167 |
- Accept-Encoding |
|
1168 |
Content-Length: |
|
1169 |
- '770' |
|
1170 |
Content-Type: |
|
1171 |
- application/json; charset=utf-8 |
|
1172 |
Set-Cookie: |
|
1173 |
- _session_id=5d20cb48d391f80506b8a04cbed3d589; path=/; secure; HttpOnly |
|
1174 |
- request_method=PUT; path=/ |
|
1175 |
body: |
|
1176 |
encoding: ASCII-8BIT |
|
1177 |
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
1178 |
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 |
|
1179 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
1180 |
|
|
1181 |
' |
|
1182 |
http_version: |
|
1183 |
recorded_at: Wed, 30 Nov 2016 15:03:32 GMT |
|
1184 |
- request: |
|
1185 |
method: put |
|
1186 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions/add_subscriptions |
|
1187 |
body: |
|
1188 |
encoding: UTF-8 |
|
1189 |
string: '{"subscriptions":[{"id":24,"quantity":0}]}' |
|
1190 |
headers: |
|
1191 |
Accept: |
|
1192 |
- application/json;version=2 |
|
1193 |
Accept-Encoding: |
|
1194 |
- gzip, deflate |
|
1195 |
User-Agent: |
|
1196 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
1197 |
Content-Type: |
|
1198 |
- application/json |
|
1199 |
Accept-Language: |
|
1200 |
- en |
|
1201 |
Content-Length: |
|
1202 |
- '42' |
|
1203 |
Host: |
|
1204 |
- katello.example.com:50083 |
|
1205 |
response: |
|
1206 |
status: |
|
1207 |
code: 200 |
|
1208 |
message: OK |
|
1209 |
headers: |
|
1210 |
Date: |
|
1211 |
- Wed, 30 Nov 2016 15:03:25 GMT |
|
1212 |
Server: |
|
1213 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
1214 |
X-Frame-Options: |
|
1215 |
- SAMEORIGIN |
|
1216 |
X-Xss-Protection: |
|
1217 |
- 1; mode=block |
|
1218 |
X-Content-Type-Options: |
|
1219 |
- nosniff |
|
1220 |
Foreman-Version: |
|
1221 |
- 1.11.0.54 |
|
1222 |
Foreman-Api-Version: |
|
1223 |
- '2' |
|
1224 |
Apipie-Checksum: |
|
1225 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
1226 |
Cache-Control: |
|
1227 |
- max-age=0, private, must-revalidate |
|
1228 |
X-Request-Id: |
|
1229 |
- 756e4389-8b90-4d75-9b8a-1679d266a317 |
|
1230 |
X-Runtime: |
|
1231 |
- '0.870528' |
|
1232 |
X-Powered-By: |
|
1233 |
- Phusion Passenger 4.0.18 |
|
1234 |
Etag: |
|
1235 |
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"' |
|
1236 |
Status: |
|
1237 |
- 200 OK |
|
1238 |
Vary: |
|
1239 |
- Accept-Encoding |
|
1240 |
Content-Length: |
|
1241 |
- '119' |
|
1242 |
Content-Type: |
|
1243 |
- application/json; charset=utf-8 |
|
1244 |
Set-Cookie: |
|
1245 |
- _session_id=a2e777e2d24923d0de9d72a037357809; path=/; secure; HttpOnly |
|
1246 |
- request_method=PUT; path=/ |
|
1247 |
body: |
|
1248 |
encoding: ASCII-8BIT |
|
1249 |
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]} |
|
1250 |
|
|
1251 |
' |
|
1252 |
http_version: |
|
1253 |
recorded_at: Wed, 30 Nov 2016 15:03:33 GMT |
|
1254 |
- request: |
|
1255 |
method: put |
|
1256 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76 |
|
1257 |
body: |
|
1258 |
encoding: UTF-8 |
|
1259 |
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red |
|
1260 |
Hat Enterprise Linux Server","arch":"x86_64","version":"7Server"}],"service_level":null}}}' |
|
1261 |
headers: |
|
1262 |
Accept: |
|
1263 |
- application/json;version=2 |
|
1264 |
Accept-Encoding: |
|
1265 |
- gzip, deflate |
|
1266 |
User-Agent: |
|
1267 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
1268 |
Content-Type: |
|
1269 |
- application/json |
|
1270 |
Accept-Language: |
|
1271 |
- en |
|
1272 |
Content-Length: |
|
1273 |
- '271' |
|
1274 |
Host: |
|
1275 |
- katello.example.com:50083 |
|
1276 |
response: |
|
1277 |
status: |
|
1278 |
code: 200 |
|
1279 |
message: OK |
|
1280 |
headers: |
|
1281 |
Date: |
|
1282 |
- Wed, 30 Nov 2016 15:03:26 GMT |
|
1283 |
Server: |
|
1284 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
1285 |
X-Frame-Options: |
|
1286 |
- SAMEORIGIN |
|
1287 |
X-Xss-Protection: |
|
1288 |
- 1; mode=block |
|
1289 |
X-Content-Type-Options: |
|
1290 |
- nosniff |
|
1291 |
Foreman-Version: |
|
1292 |
- 1.11.0.54 |
|
1293 |
Foreman-Api-Version: |
|
1294 |
- '2' |
|
1295 |
Apipie-Checksum: |
|
1296 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
1297 |
Cache-Control: |
|
1298 |
- max-age=0, private, must-revalidate |
|
1299 |
X-Request-Id: |
|
1300 |
- ea73e5bf-16b5-4c01-a0db-11427181ecb3 |
|
1301 |
X-Runtime: |
|
1302 |
- '0.703846' |
|
1303 |
X-Powered-By: |
|
1304 |
- Phusion Passenger 4.0.18 |
|
1305 |
Etag: |
|
1306 |
- '"a8d8460c5ab2bcf1b209ce031c3478af-gzip"' |
|
1307 |
Status: |
|
1308 |
- 200 OK |
|
1309 |
Vary: |
|
1310 |
- Accept-Encoding |
|
1311 |
Content-Length: |
|
1312 |
- '3855' |
|
1313 |
Content-Type: |
|
1314 |
- application/json; charset=utf-8 |
|
1315 |
Set-Cookie: |
|
1316 |
- _session_id=02fa0f05b93ed471a63d097e1d004c98; path=/; secure; HttpOnly |
|
1317 |
- request_method=PUT; path=/ |
|
1318 |
body: |
|
1319 |
encoding: ASCII-8BIT |
|
1320 |
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-11-28 |
|
1321 |
20:09:51 UTC","updated_at":"2016-11-28 21:27:19 UTC","last_compile":"2016-11-28 |
|
1322 |
20:09:52 UTC","global_status":0,"global_status_label":"Warning","organization_id":8,"organization_name":"Test |
|
1323 |
Corporation","location_id":2,"location_name":"Default Location","puppet_status":0,"model_name":null,"errata_status":0,"errata_status_label":"Could |
|
1324 |
not calculate errata status, ensure host is registered and katello-agent is |
|
1325 |
installed","subscription_status":0,"subscription_status_label":"Fully entitled","name":"testphysical","id":76,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":76,"uuid":"20e6ed92-82a4-4fee-b3c0-048420eee4cf","content_view_id":2,"content_view_name":"Default |
|
1326 |
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default |
|
1327 |
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":76,"uuid":"20e6ed92-82a4-4fee-b3c0-048420eee4cf","last_checkin":"2016-11-28 |
|
1328 |
20:09:51 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28 |
|
1329 |
20:09:51 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158ac8edf4d0ab8","productId":"69","productName":"Red |
|
1330 |
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-11-28T20:09:54.253+0000","updated":"2016-11-28T20:09:54.253+0000"}]},"content_host_id":76,"parameters":[],"interfaces":[{"id":77,"name":"testphysical","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":"testphysical","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 |
|
1331 |
Corporation/testphysical","cpu::cpu(s)":"1","system":null,"network":null,"cpu":null,"memory":null,"uname":null,"distribution":null,"virt":null,"_timestamp":"2016-11-28T20:09:52+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}}' |
|
1332 |
http_version: |
|
1333 |
recorded_at: Wed, 30 Nov 2016 15:03:34 GMT |
|
1334 |
- request: |
|
1335 |
method: get |
|
1336 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions |
|
1337 |
body: |
|
1338 |
encoding: US-ASCII |
|
1339 |
string: '' |
|
1340 |
headers: |
|
1341 |
Accept: |
|
1342 |
- application/json;version=2 |
|
1343 |
Accept-Encoding: |
|
1344 |
- gzip, deflate |
|
1345 |
User-Agent: |
|
1346 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
1347 |
Content-Type: |
|
1348 |
- application/json |
|
1349 |
Accept-Language: |
|
1350 |
- en |
|
1351 |
Host: |
|
1352 |
- katello.example.com:50083 |
|
1353 |
response: |
|
1354 |
status: |
|
1355 |
code: 200 |
|
1356 |
message: OK |
|
1357 |
headers: |
|
1358 |
Date: |
|
1359 |
- Wed, 30 Nov 2016 15:03:27 GMT |
|
1360 |
Server: |
|
1361 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
1362 |
X-Frame-Options: |
|
1363 |
- SAMEORIGIN |
|
1364 |
X-Xss-Protection: |
|
1365 |
- 1; mode=block |
|
1366 |
X-Content-Type-Options: |
|
1367 |
- nosniff |
|
1368 |
Foreman-Version: |
|
1369 |
- 1.11.0.54 |
|
1370 |
Foreman-Api-Version: |
|
1371 |
- '2' |
|
1372 |
Apipie-Checksum: |
|
1373 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
1374 |
Cache-Control: |
|
1375 |
- max-age=0, private, must-revalidate |
|
1376 |
X-Request-Id: |
|
1377 |
- d21be14f-8d37-4a40-b948-6b62f7cccf75 |
|
1378 |
X-Runtime: |
|
1379 |
- '0.254847' |
|
1380 |
X-Powered-By: |
|
1381 |
- Phusion Passenger 4.0.18 |
|
1382 |
Etag: |
|
1383 |
- '"282aa0baf77a223896b2bbaec7347468-gzip"' |
|
1384 |
Status: |
|
1385 |
- 200 OK |
|
1386 |
Vary: |
|
1387 |
- Accept-Encoding |
|
1388 |
Content-Length: |
|
1389 |
- '770' |
|
1390 |
Content-Type: |
|
1391 |
- application/json; charset=utf-8 |
|
1392 |
Set-Cookie: |
|
1393 |
- _session_id=b61a63cc41f9ba5033d865a14084b5e4; path=/; secure; HttpOnly |
|
1394 |
body: |
|
1395 |
encoding: ASCII-8BIT |
|
1396 |
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
1397 |
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 |
|
1398 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
1399 |
|
|
1400 |
' |
|
1401 |
http_version: |
|
1402 |
recorded_at: Wed, 30 Nov 2016 15:03:34 GMT |
|
1403 |
- request: |
|
1404 |
method: put |
|
1405 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions/remove_subscriptions |
|
1406 |
body: |
|
1407 |
encoding: UTF-8 |
|
1408 |
string: '{"subscriptions":[{"id":24,"quantity":1}]}' |
|
1409 |
headers: |
|
1410 |
Accept: |
|
1411 |
- application/json;version=2 |
|
1412 |
Accept-Encoding: |
|
1413 |
- gzip, deflate |
|
1414 |
User-Agent: |
|
1415 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
1416 |
Content-Type: |
|
1417 |
- application/json |
|
1418 |
Accept-Language: |
|
1419 |
- en |
|
1420 |
Content-Length: |
|
1421 |
- '42' |
|
1422 |
Host: |
|
1423 |
- katello.example.com:50083 |
|
1424 |
response: |
|
1425 |
status: |
|
1426 |
code: 200 |
|
1427 |
message: OK |
|
1428 |
headers: |
|
1429 |
Date: |
|
1430 |
- Wed, 30 Nov 2016 15:03:27 GMT |
|
1431 |
Server: |
|
1432 |
- Apache/2.4.6 (Red Hat Enterprise Linux) |
|
1433 |
X-Frame-Options: |
|
1434 |
- SAMEORIGIN |
|
1435 |
X-Xss-Protection: |
|
1436 |
- 1; mode=block |
|
1437 |
X-Content-Type-Options: |
|
1438 |
- nosniff |
|
1439 |
Foreman-Version: |
|
1440 |
- 1.11.0.54 |
|
1441 |
Foreman-Api-Version: |
|
1442 |
- '2' |
|
1443 |
Apipie-Checksum: |
|
1444 |
- ef9e7a17d630b8c2cc5b7e016c24efe7 |
|
1445 |
Cache-Control: |
|
1446 |
- max-age=0, private, must-revalidate |
|
1447 |
X-Request-Id: |
|
1448 |
- 8af88d76-fef0-483f-ac8c-4afaf305e9da |
|
1449 |
X-Runtime: |
|
1450 |
- '0.988942' |
|
1451 |
X-Powered-By: |
|
1452 |
- Phusion Passenger 4.0.18 |
|
1453 |
Etag: |
|
1454 |
- '"4a3267604dfa8f9cea83a503d95cc600-gzip"' |
|
1455 |
Status: |
|
1456 |
- 200 OK |
|
1457 |
Vary: |
|
1458 |
- Accept-Encoding |
|
1459 |
Content-Length: |
|
1460 |
- '770' |
|
1461 |
Content-Type: |
|
1462 |
- application/json; charset=utf-8 |
|
1463 |
Set-Cookie: |
|
1464 |
- _session_id=196c58a94567b930b95e71af932d4bcd; path=/; secure; HttpOnly |
|
1465 |
- request_method=PUT; path=/ |
|
1466 |
body: |
|
1467 |
encoding: ASCII-8BIT |
|
1468 |
string: '{"total":1,"subtotal":1,"page":1,"per_page":1,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"quantity_consumed":1,"id":24,"cp_id":"ff808081588d8f280158abc773a40588","subscription_id":16,"name":"Red |
|
1469 |
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 |
|
1470 |
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]} |
|
1471 |
|
|
1472 |
' |
|
1473 |
http_version: |
|
1474 |
recorded_at: Wed, 30 Nov 2016 15:03:35 GMT |
|
1475 |
- request: |
|
1476 |
method: put |
|
1477 |
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions/add_subscriptions |
|
1478 |
body: |
|
1479 |
encoding: UTF-8 |
|
1480 |
string: '{"subscriptions":[{"id":24,"quantity":0}]}' |
|
1481 |
headers: |
|
1482 |
Accept: |
|
1483 |
- application/json;version=2 |
|
1484 |
Accept-Encoding: |
|
1485 |
- gzip, deflate |
|
1486 |
User-Agent: |
|
1487 |
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 |
|
1488 |
Content-Type: |
|
1489 |
- application/json |
|
1490 |
Accept-Language: |
|
1491 |
- en |
Also available in: Unified diff
vcr - full recording