Project

General

Profile

« Previous | Next » 

Revision 1327c177

Added by Thomas McKay over 7 years ago

vcr - full recording

View differences:

test/fixtures/vcr_cassettes/resources/content_hosts/import_search.yml
http_interactions:
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/organizations/8/hosts?per_page=1
uri: https://admin:changeme@satlap.example.com/api/status
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:45 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 787d9368-87f4-4db3-bea5-eeda5969121c
X-Runtime:
- '0.157686'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"9dddf58603bb6b0c90eb10fb3fc11092-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '2297'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=d3dada89bc52a0ea2ba6d6f839f484fa; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: |
{
"total": 2,
"subtotal": 2,
"page": 1,
"per_page": 1,
"search": null,
"sort": {
"by": null,
"order": null
},
"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}]
}
http_version:
recorded_at: Wed, 30 Nov 2016 14:55:53 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/organizations/8/hosts?page=1&per_page=20
body:
encoding: US-ASCII
string: ''
headers:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
- "*/*"
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
- Ruby
Host:
- katello.example.com:50083
- satlap.example.com
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:46 GMT
- Tue, 13 Dec 2016 14:46:43 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
- e1df2e8d43e22495b02a53b48e3b5298
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- f3273f51-76b7-4627-96d8-7605631a5d77
- 567ebaa7-b34f-4ba8-9c68-d5de55563823
X-Runtime:
- '0.183999'
- '0.036735'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"c93296bc0fd6bf7ae5e03a09de91b598-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '4434'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=24327c06ed890a2964b6662c3cf6eb20; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: |
{
"total": 2,
"subtotal": 2,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"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}]
}
http_version:
recorded_at: Wed, 30 Nov 2016 14:55:53 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/katello/api/organizations/8/environments?per_page=999999
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:46 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 26705992-13b2-437a-875f-972daaac4ab3
X-Runtime:
- '0.172911'
X-Powered-By:
- Phusion Passenger 4.0.18
- _session_id=65667ed9cb9d6110be7ca951a56438bb; path=/; secure; HttpOnly
Etag:
- '"4e1a31696592f5deed5a104bca695f4a-gzip"'
- '"8e3341d0a4cc328651f7391aed11fef8"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '3019'
- '66'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=7e06f0aae0f1869d9cb459867b05f34a; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
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,
manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22
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,
manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22
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
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:04
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,
automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22
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,
no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22
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}}]}
'
encoding: UTF-8
string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
http_version:
recorded_at: Wed, 30 Nov 2016 14:55:53 GMT
recorded_at: Tue, 13 Dec 2016 14:46:41 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/katello/api/organizations/8/content_views?per_page=999999
uri: https://admin:changeme@satlap.example.com/api/v2/plugins
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:46 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 6dc56d5b-9a5e-4356-b29c-ae1c8ab72951
X-Runtime:
- '0.143789'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"aa9fa1da1e6ef54d281880ce5c59cc70-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '1743'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=7d83ead0ff990119ee5b312ee599c405; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
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
Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:40
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
13:20:42 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-11-22
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
Organization View","label":"2abb245e-7fd3-4087-bea5-31ff5fb1ce95","description":null,"organization":{"name":"Test
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:04
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
13:20:04 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-11-22
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}}]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:55:53 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/hosts/154/subscriptions
body:
encoding: US-ASCII
string: ''
headers:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
- "*/*"
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
- Ruby
Host:
- katello.example.com:50083
- satlap.example.com
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:48 GMT
- Tue, 13 Dec 2016 14:46:43 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
- e1df2e8d43e22495b02a53b48e3b5298
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- ae491f23-14bf-499b-9b00-ab3aa167ef74
- 49a0c416-0047-4adb-8197-51b13d2781d0
X-Runtime:
- '0.132228'
- '0.032364'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '119'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=b4e831018bb3369828443425fd40f3bf; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:55:55 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/hosts/155/subscriptions
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:50 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 01396038-4e60-4ff5-a5f9-ccef0ba50c5c
X-Runtime:
- '0.106523'
X-Powered-By:
- Phusion Passenger 4.0.18
- _session_id=e335d8965e82c97ed1e2b797fc794781; path=/; secure; HttpOnly
Etag:
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
- '"077fb42a553a8a1a1bbf6262a2cc79ec-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '119'
- '1338'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=31d56d8c6d68e5bf5fa0e649cc1329b8; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
'
string: !binary |-
ewogICJ0b3RhbCI6IDEwLAogICJzdWJ0b3RhbCI6IDEwLAogICJwYWdlIjog
MSwKICAicGVyX3BhZ2UiOiAyMCwKICAic2VhcmNoIjogbnVsbCwKICAic29y
dCI6IHsKICAgICJieSI6IG51bGwsCiAgICAib3JkZXIiOiBudWxsCiAgfSwK
ICAicmVzdWx0cyI6IFt7ImlkIjoiZm9yZW1hbi10YXNrcyIsIm5hbWUiOiJm
b3JlbWFuLXRhc2tzIiwiYXV0aG9yIjoiSXZhbiBOZcSNYXMiLCJkZXNjcmlw
dGlvbiI6IlRoZSBnb2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57 GMT
recorded_at: Tue, 13 Dec 2016 14:46:41 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/hosts/156/subscriptions
uri: https://satlap.example.com/apidoc/v2.en.json
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:52 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 6ba11e60-d409-4eb8-b12f-f65f8e89ab12
X-Runtime:
- '0.146248'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '119'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=9ca2103f2087b642843d9b9c2f205993; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:55:59 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/hosts/157/subscriptions
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
......
Accept-Language:
- en
Host:
- katello.example.com:50083
- satlap.example.com
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:54 GMT
- Tue, 13 Dec 2016 14:46:43 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
......
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Content-Disposition:
- inline; filename="v2.en.json"
Content-Transfer-Encoding:
- binary
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 2f1a7073-9bd7-4a9b-9247-83f72991113e
X-Runtime:
- '0.100807'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '119'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=a3d7ddbd65ae771014c8da4cef4ec7f4; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:01 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/hosts/158/subscriptions
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:56 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
- private
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
- e1df2e8d43e22495b02a53b48e3b5298
X-Request-Id:
- 36976c51-d334-43cb-a215-94ed1aaba478
- 7c1d0b08-8e49-4b8a-a80e-48d897008f12
X-Runtime:
- '0.125244'
- '0.004606'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '119'
- '883045'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=ed398dad1c599b1665008ad3f9c4e0dd; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:03 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/organizations/8/hosts?per_page=1
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:56 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 4e6312f8-634a-4159-93e1-40bfae9f6281
X-Runtime:
- '0.240809'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"7a19f5c16256a9ba899348cef9a768cc-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '2293'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=1156e78dbf5c381dccd74f836f742e1b; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: |
{
"total": 7,
"subtotal": 7,
"page": 1,
"per_page": 1,
"search": null,
"sort": {
"by": null,
"order": null
},
"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":"testaaa0","image_id":null,"image_name":null,"created_at":"2016-11-30 14:55:46 UTC","updated_at":"2016-11-30 14:55:48 UTC","last_compile":"2016-11-30 14:55:48 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testaaa0","id":154,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":154,"uuid":"38ced2aa-0cf9-4e97-acd9-5cbf4f3cfbf0","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":154,"uuid":"38ced2aa-0cf9-4e97-acd9-5cbf4f3cfbf0","last_checkin":"2016-11-30 14:55:47 UTC","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-11-30 14:55:47 UTC"},"content_host_id":154}]
}
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:04 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/organizations/8/hosts?page=1&per_page=20
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:57 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 202bf958-c43b-4eae-aab3-569467c6a8a8
X-Runtime:
- '0.430480'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"babee4e6c622924a93507ea80d4fb246-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '15151'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=fc2f562bc79bbc1fccbd7fc32eea53ef; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: |
{
"total": 7,
"subtotal": 7,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"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":"testaaa0","image_id":null,"image_name":null,"created_at":"2016-11-30 14:55:46 UTC","updated_at":"2016-11-30 14:55:48 UTC","last_compile":"2016-11-30 14:55:48 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testaaa0","id":154,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":154,"uuid":"38ced2aa-0cf9-4e97-acd9-5cbf4f3cfbf0","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":154,"uuid":"38ced2aa-0cf9-4e97-acd9-5cbf4f3cfbf0","last_checkin":"2016-11-30 14:55:47 UTC","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-11-30 14:55:47 UTC"},"content_host_id":154},{"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-11-30 14:55:48 UTC","updated_at":"2016-11-30 14:55:50 UTC","last_compile":"2016-11-30 14:55:50 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testaaa1","id":155,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":155,"uuid":"23d2412b-dc82-44f6-8aff-6deef4eb94ee","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":155,"uuid":"23d2412b-dc82-44f6-8aff-6deef4eb94ee","last_checkin":"2016-11-30 14:55:48 UTC","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-11-30 14:55:49 UTC"},"content_host_id":155},{"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":"testbbb0","image_id":null,"image_name":null,"created_at":"2016-11-30 14:55:50 UTC","updated_at":"2016-11-30 14:55:52 UTC","last_compile":"2016-11-30 14:55:52 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testbbb0","id":156,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":156,"uuid":"4c373805-6c7d-4e6a-855e-ee5cb6bbe527","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":156,"uuid":"4c373805-6c7d-4e6a-855e-ee5cb6bbe527","last_checkin":"2016-11-30 14:55:50 UTC","service_level":"Premium","release_version":null,"autoheal":true,"registered_at":"2016-11-30 14:55:51 UTC"},"content_host_id":156},{"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":"testbbb1","image_id":null,"image_name":null,"created_at":"2016-11-30 14:55:52 UTC","updated_at":"2016-11-30 14:55:54 UTC","last_compile":"2016-11-30 14:55:54 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testbbb1","id":157,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":157,"uuid":"903b4f15-aa6c-4f1a-a767-a88af4874e1d","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":157,"uuid":"903b4f15-aa6c-4f1a-a767-a88af4874e1d","last_checkin":"2016-11-30 14:55:52 UTC","service_level":"Premium","release_version":null,"autoheal":true,"registered_at":"2016-11-30 14:55:53 UTC"},"content_host_id":157},{"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":"testbbb2","image_id":null,"image_name":null,"created_at":"2016-11-30 14:55:54 UTC","updated_at":"2016-11-30 14:55:56 UTC","last_compile":"2016-11-30 14:55:56 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testbbb2","id":158,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":158,"uuid":"3c7c7eff-6850-4226-b4f0-47cd9b5cf047","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":158,"uuid":"3c7c7eff-6850-4226-b4f0-47cd9b5cf047","last_checkin":"2016-11-30 14:55:54 UTC","service_level":"Premium","release_version":null,"autoheal":true,"registered_at":"2016-11-30 14:55:55 UTC"},"content_host_id":158},{"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}]
}
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:04 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/organizations/8/hosts?search=name%20~%20testaaa
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:57 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 4afea9b1-7a3a-4115-99b7-5f76041c83ee
X-Runtime:
- '0.179436'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"babc30a804e719189e14cafa66f0670c-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '4450'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=44d5c284e6daf0c4051ba87a59190d09; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: |
{
"total": 7,
"subtotal": 2,
"page": 1,
"per_page": 20,
"search": "name ~ testaaa",
"sort": {
"by": null,
"order": null
},
"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":"testaaa0","image_id":null,"image_name":null,"created_at":"2016-11-30 14:55:46 UTC","updated_at":"2016-11-30 14:55:48 UTC","last_compile":"2016-11-30 14:55:48 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testaaa0","id":154,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":154,"uuid":"38ced2aa-0cf9-4e97-acd9-5cbf4f3cfbf0","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":154,"uuid":"38ced2aa-0cf9-4e97-acd9-5cbf4f3cfbf0","last_checkin":"2016-11-30 14:55:47 UTC","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-11-30 14:55:47 UTC"},"content_host_id":154},{"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-11-30 14:55:48 UTC","updated_at":"2016-11-30 14:55:50 UTC","last_compile":"2016-11-30 14:55:50 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testaaa1","id":155,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":155,"uuid":"23d2412b-dc82-44f6-8aff-6deef4eb94ee","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":155,"uuid":"23d2412b-dc82-44f6-8aff-6deef4eb94ee","last_checkin":"2016-11-30 14:55:48 UTC","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-11-30 14:55:49 UTC"},"content_host_id":155}]
}
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:04 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/katello/api/organizations/8/environments?per_page=999999
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:57 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- a5956918-f327-424f-9762-921a414a3b58
X-Runtime:
- '0.104125'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"590cf0878371ddef5393fadfc1835933-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '3019'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=01d99cdcdb5facf2c5e61181707342ff; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
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,
manual promotions from Development","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22
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,
manual promotions from Test","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22
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
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:04
UTC","updated_at":"2016-11-22 13:20:04 UTC","prior":null,"successor":null,"counts":{"content_hosts":7,"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,
automated promotes from Library","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22
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,
no longer in Production","organization":{"name":"Test Corporation","label":"testcorp","id":8},"created_at":"2016-11-22
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}}]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:04 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/katello/api/organizations/8/content_views?per_page=999999
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:57 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- f3e13769-4a47-4857-9e87-00145ec3148c
X-Runtime:
- '0.100402'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"aa9fa1da1e6ef54d281880ce5c59cc70-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '1743'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=d5391fd2f137ccc4afe38c9efc6a4e7d; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
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
Puppet Modules","label":"Test_Puppet_Modules","description":null,"organization":{"name":"Test
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:40
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
13:20:42 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-11-22
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
Organization View","label":"2abb245e-7fd3-4087-bea5-31ff5fb1ce95","description":null,"organization":{"name":"Test
Corporation","label":"testcorp","id":8},"created_at":"2016-11-22 13:20:04
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
13:20:04 UTC","environment_ids":[2]}],"components":[],"activation_keys":[],"last_published":"2016-11-22
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}}]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:05 GMT
- request:
method: put
uri: https://admin:changeme@katello.example.com:50083/api/hosts/154
body:
encoding: UTF-8
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
Hat Enterprise Linux Server","arch":"x86_64","version":"6.4"}],"service_level":"Standard"}}}'
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Content-Length:
- '273'
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:58 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- d96847b3-3fbf-43cb-9f2e-72f8b834c97a
X-Runtime:
- '0.694816'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"e559b85797d701cc7a072cbee3c4b560-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '3820'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=42818960956680c3a97e724e76c60fb6; path=/; secure; HttpOnly
- request_method=PUT; path=/
body:
encoding: ASCII-8BIT
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-11-30
14:55:46 UTC","updated_at":"2016-11-30 14:55:48 UTC","last_compile":"2016-11-30
14:55:48 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testaaa0","id":154,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":154,"uuid":"38ced2aa-0cf9-4e97-acd9-5cbf4f3cfbf0","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},"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":154,"uuid":"38ced2aa-0cf9-4e97-acd9-5cbf4f3cfbf0","last_checkin":"2016-11-30
14:55:47 UTC","service_level":"Standard","release_version":null,"autoheal":true,"registered_at":"2016-11-30
14:55:47 UTC","activation_keys":[],"compliance_reasons":["Red Hat Enterprise
Linux Server: Not supported by a valid subscription."],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158b5bc021f0f9c","productId":"69","productName":"Red
Hat Enterprise Linux Server","version":null,"arch":"x86_64,ia64,x86","status":"red","startDate":null,"endDate":null,"created":"2016-11-30T14:55:47.231+0000","updated":"2016-11-30T14:55:47.231+0000"}]},"content_host_id":154,"parameters":[],"interfaces":[{"id":155,"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
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-11-30T14:55:48+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}}'
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:05 GMT
- request:
method: get
uri: https://admin:changeme@katello.example.com:50083/api/hosts/154/subscriptions
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:58 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 7df4fa64-8ea6-468b-ae56-9f10d2c88583
X-Runtime:
- '0.089234'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '119'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=7abb8121d1930dc32b5dd3c813870f38; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:05 GMT
- request:
method: get
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
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:58 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- df51973e-a02b-45f1-9b1e-e5affb39ec18
X-Runtime:
- '0.258782'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"1b94183e205d678cbef2bf148548d007-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '851'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=1494f7a765151e0ee33d3cd58d555527; path=/; secure; HttpOnly
body:
encoding: ASCII-8BIT
string: '{"organization":{},"total":6,"subtotal":1,"page":1,"per_page":"999999","error":null,"search":"name
= \"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
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
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:06 GMT
- request:
method: put
uri: https://admin:changeme@katello.example.com:50083/api/hosts/154/subscriptions/add_subscriptions
body:
encoding: UTF-8
string: '{"subscriptions":[{"id":24,"quantity":2}]}'
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Content-Length:
- '42'
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:55:59 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 42dd96ee-1b05-44a6-b32b-e27b361979c5
X-Runtime:
- '0.844865'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"28f980ca6d7d7d8bdbe90747a65a208f-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '119'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=1091f44cc7c69b1a47cdbe639ef76e45; path=/; secure; HttpOnly
- request_method=PUT; path=/
body:
encoding: ASCII-8BIT
string: '{"total":0,"subtotal":0,"page":1,"per_page":0,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[]}
'
http_version:
recorded_at: Wed, 30 Nov 2016 14:56:07 GMT
- request:
method: put
uri: https://admin:changeme@katello.example.com:50083/api/hosts/155
body:
encoding: UTF-8
string: '{"host":{"content_facet_attributes":{"lifecycle_environment_id":2,"content_view_id":2},"subscription_facet_attributes":{"installed_products":[{"product_id":"69","product_name":"Red
Hat Enterprise Linux Server","arch":"x86_64","version":"6.4"}],"service_level":"Standard"}}}'
headers:
Accept:
- application/json;version=2
Accept-Encoding:
- gzip, deflate
User-Agent:
- rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112
Content-Type:
- application/json
Accept-Language:
- en
Content-Length:
- '273'
Host:
- katello.example.com:50083
response:
status:
code: 200
message: OK
headers:
Date:
- Wed, 30 Nov 2016 14:56:00 GMT
Server:
- Apache/2.4.6 (Red Hat Enterprise Linux)
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
X-Content-Type-Options:
- nosniff
Foreman-Version:
- 1.11.0.54
Foreman-Api-Version:
- '2'
Apipie-Checksum:
- ef9e7a17d630b8c2cc5b7e016c24efe7
Cache-Control:
- max-age=0, private, must-revalidate
X-Request-Id:
- 23d50476-9cab-4a9a-8967-d11693c57062
X-Runtime:
- '0.632056'
X-Powered-By:
- Phusion Passenger 4.0.18
Etag:
- '"6cb8ead37048f7ca50cdf1565de6e1ef-gzip"'
Status:
- 200 OK
Vary:
- Accept-Encoding
Content-Length:
- '3812'
Content-Type:
- application/json; charset=utf-8
Set-Cookie:
- _session_id=79f45995fbf4c7cd569b1d8309a9c2b8; path=/; secure; HttpOnly
- request_method=PUT; path=/
body:
encoding: ASCII-8BIT
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-11-30
14:55:48 UTC","updated_at":"2016-11-30 14:55:50 UTC","last_compile":"2016-11-30
14:55:50 UTC","global_status":2,"global_status_label":"Error","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":2,"subscription_status_label":"Unentitled","name":"testaaa1","id":155,"hostgroup_name":null,"hostgroup_title":null,"content_facet_attributes":{"id":155,"uuid":"23d2412b-dc82-44f6-8aff-6deef4eb94ee","content_view_id":2,"content_view_name":"Default
Organization View","lifecycle_environment_id":2,"lifecycle_environment_name":"Library","content_view":{"id":2,"name":"Default
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff