Revision 1327c177
Added by Thomas McKay over 7 years ago
test/fixtures/vcr_cassettes/setup/setup_content_hosts/setup.yml | ||
---|---|---|
http_interactions:
|
||
- 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 15:03:15 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:
|
||
- 141d55f1-53ce-4fbb-bfb7-4810f4a6e20c
|
||
X-Runtime:
|
||
- '0.273700'
|
||
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=47ca6fcccda66e6fed85c84bda11992b; 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 15:03:22 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 15:03:15 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:
|
||
- ed9b51b5-0414-4f30-b242-c2440ac8f19a
|
||
X-Runtime:
|
||
- '0.316967'
|
||
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=9f64c61260d4ffba02f504f0ec6b70a7; 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 15:03:23 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 15:03:16 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:
|
||
- 266fac1c-7446-40fd-8f2c-3e0e86e4fa2a
|
||
X-Runtime:
|
||
- '0.178364'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"4e1a31696592f5deed5a104bca695f4a-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '3019'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=b8e48028f37f3c76faa623e22d654d4e; 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}}]}
|
||
|
||
'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:23 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 15:03:16 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:
|
||
- 0785f9bb-fd86-4da4-b41d-682bc393699e
|
||
X-Runtime:
|
||
- '0.081047'
|
||
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=d517f525224bd76a78f827e5534a7e3f; 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 15:03:23 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75
|
||
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":"7Server"}],"service_level":null}}}'
|
||
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:
|
||
- '271'
|
||
Host:
|
||
- katello.example.com:50083
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 30 Nov 2016 15:03:16 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:
|
||
- 0f3eb388-0a37-4a05-bf34-06015c29983d
|
||
X-Runtime:
|
||
- '0.744682'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"4b2cb7da45ed5b9e852d4c4d60aea7a3-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '3825'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=3002708baa2b1379cc2c1b542defa3a7; 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":"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},"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
|
||
20:09:43 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28
|
||
20:09:43 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158ac8ec7910aa4","productId":"69","productName":"Red
|
||
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
|
||
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}}'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:24 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/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 15:03:17 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:
|
||
- fbfa5bdd-a010-4d09-8ede-afe338c8eddf
|
||
X-Runtime:
|
||
- '0.245801'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"282aa0baf77a223896b2bbaec7347468-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '770'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=14815a2bea6d882386358cdb351e0559; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
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
|
||
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 15:03:24 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions/remove_subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"subscriptions":[{"id":24,"quantity":1}]}'
|
||
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 15:03:17 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:
|
||
- 36881844-8185-4047-9bc3-14a1b80c55d5
|
||
X-Runtime:
|
||
- '1.085246'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"4a3267604dfa8f9cea83a503d95cc600-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '770'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=32d04d3d0ed629cb01ee0f5c0d1ce2fa; path=/; secure; HttpOnly
|
||
- request_method=PUT; path=/
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
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
|
||
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
|
||
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
||
|
||
'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:25 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 15:03:18 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:
|
||
- 0018d88e-e9b5-46ea-9715-e80f221e0506
|
||
X-Runtime:
|
||
- '0.265246'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"6f03cb8153763c01e156a84cd18cce98-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '851'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=95646fb7f7d16ce468ef871b848e376a; 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":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
|
||
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
||
|
||
'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:26 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions/add_subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"subscriptions":[{"id":24,"quantity":0}]}'
|
||
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 15:03:19 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:
|
||
- f7d0954d-952d-458e-82be-1bf3cfa8a0ca
|
||
X-Runtime:
|
||
- '0.959202'
|
||
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=87c7a0276dca9d35b057aaad463a7f50; 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 15:03:27 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75
|
||
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":"7Server"}],"service_level":null}}}'
|
||
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:
|
||
- '271'
|
||
Host:
|
||
- katello.example.com:50083
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 30 Nov 2016 15:03:20 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:
|
||
- a33828a7-ace5-47c1-950f-97d2be5007e3
|
||
X-Runtime:
|
||
- '0.709180'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"566a51c74b78d26aa49b8285565514f3-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '3819'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=4bfba7cc4e4f4ad667e2cc23ae12c6b8; 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":"testvm","image_id":null,"image_name":null,"created_at":"2016-11-28
|
||
20:09:42 UTC","updated_at":"2016-11-30 15:03:18 UTC","last_compile":"2016-11-28
|
||
20:09:44 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":"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},"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
|
||
20:09:43 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28
|
||
20:09:43 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158ac8ec7910aa4","productId":"69","productName":"Red
|
||
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
|
||
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}}'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:27 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/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 15:03:20 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:
|
||
- ca1b81ab-e29d-41cc-9332-1236aa37d494
|
||
X-Runtime:
|
||
- '0.262857'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"282aa0baf77a223896b2bbaec7347468-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '770'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=c80896a3f9d68f15fe2b46cacf922360; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
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
|
||
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 15:03:28 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions/remove_subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"subscriptions":[{"id":24,"quantity":1}]}'
|
||
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 15:03:21 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:
|
||
- ff0a6c16-a8bd-4412-b872-71ffa8e3474e
|
||
X-Runtime:
|
||
- '1.198168'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"4a3267604dfa8f9cea83a503d95cc600-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '770'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=16f0bc883e6f0f9cdcafecbaec25f786; path=/; secure; HttpOnly
|
||
- request_method=PUT; path=/
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
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
|
||
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
|
||
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
||
|
||
'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:29 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/75/subscriptions/add_subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"subscriptions":[{"id":24,"quantity":0}]}'
|
||
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 15:03:22 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:
|
||
- 8b185313-133d-4afc-94b2-3a41434042e8
|
||
X-Runtime:
|
||
- '1.121386'
|
||
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=a651596db84ce5197d6a408818983de9; 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 15:03:30 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76
|
||
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":"7Server"}],"service_level":null}}}'
|
||
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:
|
||
- '271'
|
||
Host:
|
||
- katello.example.com:50083
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 30 Nov 2016 15:03:23 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:
|
||
- 63bc16a3-333e-4f8c-a718-eb01bd69dc7b
|
||
X-Runtime:
|
||
- '0.717856'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"a8d8460c5ab2bcf1b209ce031c3478af-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '3855'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=0890192c64d92b5c9c240ed0a4ad0828; 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":"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},"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
|
||
20:09:51 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28
|
||
20:09:51 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158ac8edf4d0ab8","productId":"69","productName":"Red
|
||
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
|
||
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}}'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:31 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/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 15:03:24 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:
|
||
- 70fc1ca7-fba6-459f-8604-a0f5168c25c1
|
||
X-Runtime:
|
||
- '0.250591'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"282aa0baf77a223896b2bbaec7347468-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '770'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=67533d844dace619d0ba03d6aa32c16e; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
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
|
||
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 15:03:31 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions/remove_subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"subscriptions":[{"id":24,"quantity":1}]}'
|
||
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 15:03:24 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:
|
||
- aa6d0ab0-960d-4f8b-8a6b-ad80b5e6eb29
|
||
X-Runtime:
|
||
- '1.020288'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"4a3267604dfa8f9cea83a503d95cc600-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '770'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=5d20cb48d391f80506b8a04cbed3d589; path=/; secure; HttpOnly
|
||
- request_method=PUT; path=/
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
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
|
||
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
|
||
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
||
|
||
'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:32 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions/add_subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"subscriptions":[{"id":24,"quantity":0}]}'
|
||
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 15:03:25 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:
|
||
- 756e4389-8b90-4d75-9b8a-1679d266a317
|
||
X-Runtime:
|
||
- '0.870528'
|
||
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=a2e777e2d24923d0de9d72a037357809; 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 15:03:33 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76
|
||
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":"7Server"}],"service_level":null}}}'
|
||
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:
|
||
- '271'
|
||
Host:
|
||
- katello.example.com:50083
|
||
response:
|
||
status:
|
||
code: 200
|
||
message: OK
|
||
headers:
|
||
Date:
|
||
- Wed, 30 Nov 2016 15:03:26 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:
|
||
- ea73e5bf-16b5-4c01-a0db-11427181ecb3
|
||
X-Runtime:
|
||
- '0.703846'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"a8d8460c5ab2bcf1b209ce031c3478af-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '3855'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=02fa0f05b93ed471a63d097e1d004c98; 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":"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},"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
|
||
20:09:51 UTC","service_level":null,"release_version":null,"autoheal":true,"registered_at":"2016-11-28
|
||
20:09:51 UTC","activation_keys":[],"compliance_reasons":[],"virtual_host":null,"virtual_guests":[],"installed_products":[{"id":"ff808081588d8f280158ac8edf4d0ab8","productId":"69","productName":"Red
|
||
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
|
||
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}}'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:34 GMT
|
||
- request:
|
||
method: get
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/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 15:03:27 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:
|
||
- d21be14f-8d37-4a40-b948-6b62f7cccf75
|
||
X-Runtime:
|
||
- '0.254847'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"282aa0baf77a223896b2bbaec7347468-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '770'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=b61a63cc41f9ba5033d865a14084b5e4; path=/; secure; HttpOnly
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
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
|
||
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 15:03:34 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions/remove_subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"subscriptions":[{"id":24,"quantity":1}]}'
|
||
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 15:03:27 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:
|
||
- 8af88d76-fef0-483f-ac8c-4afaf305e9da
|
||
X-Runtime:
|
||
- '0.988942'
|
||
X-Powered-By:
|
||
- Phusion Passenger 4.0.18
|
||
Etag:
|
||
- '"4a3267604dfa8f9cea83a503d95cc600-gzip"'
|
||
Status:
|
||
- 200 OK
|
||
Vary:
|
||
- Accept-Encoding
|
||
Content-Length:
|
||
- '770'
|
||
Content-Type:
|
||
- application/json; charset=utf-8
|
||
Set-Cookie:
|
||
- _session_id=196c58a94567b930b95e71af932d4bcd; path=/; secure; HttpOnly
|
||
- request_method=PUT; path=/
|
||
body:
|
||
encoding: ASCII-8BIT
|
||
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
|
||
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
|
||
Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)","unmapped_guest":false,"virt_only":false}]}
|
||
|
||
'
|
||
http_version:
|
||
recorded_at: Wed, 30 Nov 2016 15:03:35 GMT
|
||
- request:
|
||
method: put
|
||
uri: https://admin:changeme@katello.example.com:50083/api/hosts/76/subscriptions/add_subscriptions
|
||
body:
|
||
encoding: UTF-8
|
||
string: '{"subscriptions":[{"id":24,"quantity":0}]}'
|
||
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
|
Also available in: Unified diff
vcr - full recording